Options
All
  • Public
  • Public/Protected
  • All
Menu

Type parameters

Hierarchy

Implements

Index

Constructors

Properties

Methods

Constructors

Properties

_activeDrawInteraction: null | Draw
_busyWorkers: number
_comp: undefined | IViewerComponent
_layerSetGroups: Dictionary<TLayerSetGroup>
_mouseTooltip: undefined | MouseTrackingTooltip
_ovMap: undefined | OverviewMap
_select: undefined | Select
_selectTooltip: undefined | SelectedFeaturesTooltip
_state: TState
_supportsTouch: boolean

Indicates if touch events are supported.

_triggerZoomRequestOnMoveEnd: boolean
_zoomSelectBox: undefined | DragBox

Methods

  • addBaseTileLoadFunction(mapName: string, layerName: string, func: LoadFunction): void
  • Adds a custom tile load function for a given base image tile layer.

    NOTE: Unlike other load function registrations this must be done before the viewer is mounted. New load functions added at runtime will not be recognized

    since

    0.14

    Parameters

    • mapName: string
    • layerName: string

      The base layer this function should apply for

    • func: LoadFunction

      The custom tile load function

    Returns void

  • addFeatureToHighlight(feat: undefined | OLFeature, bAppend: boolean): void
  • Parameters

    Returns void

  • addHandler(eventName: string, handler: Function): void
  • Adds an event handler for the specified event

    Parameters

    • eventName: string
    • handler: Function

    Returns void

  • addImageLoadFunction(mapName: string, layerName: string, func: LoadFunction): void
  • Adds a custom image load function for a given overlay image layer

    since

    0.14

    Parameters

    • mapName: string
    • layerName: string

      The layer this function should apply for

    • func: LoadFunction

      The custom tile load function

    Returns void

  • addImageLoaded(): void
  • Returns void

  • addImageLoading(): void
  • Returns void

  • addInteraction<T>(interaction: T): T
  • addOverlay(overlay: Overlay): void
  • EXPERIMENTAL: Adds the given application state subscribers

    NOTE: Calling this method will trigger a re-render of the component. Due to this quirk, calling this method again while a re-render is taking place may cause the subscriber to not actually be registered. Calling this method multiple times in succession is therefore not advised. If you need to add multiple subscribers, pass an array of the subscribers to register in a single method call.

    Parameters

    Returns string[]

  • addTileLoadFunction(mapName: string, layerName: string, func: LoadFunction): void
  • Adds a custom tile load function for a given overlay image tile layer

    since

    0.14

    Parameters

    • mapName: string
    • layerName: string

      The layer this function should apply for

    • func: LoadFunction

      The custom tile load function

    Returns void

  • Adds a WMS query augmentation for the given WMS overlay layer

    since

    0.14

    Parameters

    • mapName: string
    • layerName: string

      The layer this function should apply for

    • func: WmsQueryAugmentation

      The WMS query augmentation

    Returns void

  • cancelDigitization(): void
  • clearMouseTooltip(): void
  • Returns void

  • decrementBusyWorker(): void
  • detachFromComponent(): void
  • dismissToast(key: string): void
  • dispatch(action: any): void
  • Dispatches the given action

    remarks

    Usage outside of the react component context (eg. Plain HTML Task Pane content) should be used sparingly. In particular you should avoid trying to call this method multiple times in succession. You should call this method once in response to a DOM element event (eg. A button click)

    Parameters

    • action: any

    Returns void

  • ensureAndGetLayerSetGroup(nextState: TState): TLayerSetGroup
  • Parameters

    • nextState: TState

    Returns TLayerSetGroup

  • getBaseTileSourceLoaders(mapName: string): Dictionary<LoadFunction>
  • Parameters

    • mapName: string

    Returns Dictionary<LoadFunction>

  • getImageSourceLoaders(mapName: string): Dictionary<LoadFunction>
  • Parameters

    • mapName: string

    Returns Dictionary<LoadFunction>

  • Gets the layer manager for the given map. If map name is not specifed it will get the layer manager for the currently active map.

    Parameters

    • Optional mapName: string

    Returns ILayerManager

  • getLayerManagerForLayerSet(layerSet: TLayerSetGroup): LayerManager
  • getLayerSetGroup(name: undefined | string): undefined | TLayerSetGroup
  • Parameters

    • name: undefined | string

    Returns undefined | TLayerSetGroup

  • getMapName(): string
  • getMetersPerUnit(): number
  • getOLView(): View
  • Returns View

  • getProjection(): ProjectionLike
  • getProviderName(): string
  • getResolution(): undefined | number
  • getScaleForExtent(bounds: Bounds): number
  • Parameters

    Returns number

  • getSelectedFeatures(): undefined | Collection<Feature<Geometry>>
  • Returns the collection of selected client-side vector features. This collection is observable, so you may hold onto a reference to this collection and subscribe to events on this collection for when new features are added or removed from this collection

    Returns undefined | Collection<Feature<Geometry>>

  • getSubscribers(): string[]
  • getTileSourceLoaders(mapName: string): Dictionary<LoadFunction>
  • Parameters

    • mapName: string

    Returns Dictionary<LoadFunction>

  • getViewRotation(): number
  • handleHighlightHover(e: any): void
  • Parameters

    • e: any

    Returns void

  • handleMouseTooltipMouseMove(e: any): void
  • Parameters

    • e: any

    Returns void

  • hideAllPopups(): void
  • hideSelectedVectorFeaturesTooltip(): void
  • Returns void

  • incrementBusyWorker(): void
  • initContext(layerSet: TLayerSetGroup, locale?: string, overviewMapElementSelector?: () => null | Element): void
  • Parameters

    • layerSet: TLayerSetGroup
    • Optional locale: string
    • Optional overviewMapElementSelector: () => null | Element
        • (): null | Element
        • Returns null | Element

    Returns void

  • initLayerSet(nextState: TState): TLayerSetGroup
  • Parameters

    • nextState: TState

    Returns TLayerSetGroup

  • initialView(): void
  • isDigitizing(): boolean
  • isMouseOverTooltip(): boolean
  • isReady(): boolean
  • isViewRotationEnabled(): boolean
  • onBeforeAttachingLayerSetGroup(layerSetGroup: TLayerSetGroup): void
  • virtual
    memberof

    BaseMapProviderContext

    Parameters

    • layerSetGroup: TLayerSetGroup

    Returns void

  • onImageError(e: any): void
  • virtual
    memberof

    BaseMapProviderContext

    Parameters

    • e: any

    Returns void

  • onKeyDown(e: any): void
  • onMapClick(e: MapBrowserEvent<any>): void
  • Parameters

    • e: MapBrowserEvent<any>

    Returns void

  • onMouseMove(e: any): void
  • virtual
    memberof

    BaseMapProviderContext

    Parameters

    • e: any

    Returns void

  • onProviderMapClick(px: [number, number]): void
  • Parameters

    • px: [number, number]

    Returns void

  • onZoomSelectBox(e: any): void
  • Parameters

    • e: any

    Returns void

  • pushDrawInteraction<T>(digitizingType: string, draw: Draw, handler: DigitizerCallback<T>, prompt?: string): void
  • Type parameters

    • T: Geometry<T>

    Parameters

    Returns void

  • queryWmsFeatures(mapName: undefined | string, coord: Coordinate2D, bAppendMode: boolean): Promise<boolean>
  • Parameters

    • mapName: undefined | string
    • coord: Coordinate2D
    • bAppendMode: boolean

    Returns Promise<boolean>

  • removeActiveDrawInteraction(): void
  • Returns void

  • removeHandler(eventName: string, handler: Function): void
  • removeInteraction<T>(interaction: T): void
  • removeOverlay(overlay: Overlay): void
  • removeSubscribers(names: string[]): boolean
  • resolutionToScale(resolution: number): number
  • Parameters

    • resolution: number

    Returns number

  • scaleToResolution(scale: number): number
  • screenToMapUnits(x: number, y: number): [number, number]
  • selectFeaturesByExtent(geom: Polygon): void
  • virtual
    memberof

    BaseMapProviderContext

    Parameters

    • geom: Polygon

    Returns void

  • setMouseTooltip(text: string): void
  • Parameters

    • text: string

    Returns void

  • setProviderState(nextState: TState): void
  • setToasterRef(ref: RefObject<Toaster>): void
  • setViewRotation(rotation: number): void
  • setViewRotationEnabled(enabled: boolean): void
  • showSelectedVectorFeatures(features: Collection<OLFeature>, pixel: [number, number], featureToLayerMap: [OLFeature, OLLayer][], locale?: string): void
  • Parameters

    Returns void

  • toastError(iconName: string, message: string | Element): undefined | string
  • toastPrimary(iconName: string, message: string | Element): undefined | string
  • toastSuccess(iconName: string, message: string | Element): undefined | string
  • toastWarning(iconName: string, message: string | Element): undefined | string
  • updateOverviewMapElement(overviewMapElementSelector: () => null | Element): void
  • Parameters

    • overviewMapElementSelector: () => null | Element
        • (): null | Element
        • Returns null | Element

    Returns void

  • updateSize(): void
  • zoomByDelta(delta: number): void
  • Parameters

    • delta: number

    Returns void

  • zoomDelta(delta: number): void
  • zoomToExtent(extent: Bounds): void
  • zoomToView(x: number, y: number, scale: number): void

Generated using TypeDoc