Options
All
  • Public
  • Public/Protected
  • All
Menu

Provides contextual information for a map viewer

export
class

MapViewerContext

Hierarchy

  • MapViewerContext

Index

Constructors

constructor

Methods

clearMouseTooltip

  • clearMouseTooltip(): void
  • Returns void

enableFeatureTooltips

  • enableFeatureTooltips(enabled: boolean): void
  • Parameters

    • enabled: boolean

    Returns void

getLayerSet

getOverviewMap

  • getOverviewMap(): olOverviewMap
  • Returns olOverviewMap

handleFeatureTooltipMouseMove

handleMouseTooltipMouseMove

initContext

  • initContext(layerSet: MgLayerSet, overviewMapElementSelector?: undefined | function): void
  • Parameters

    • layerSet: MgLayerSet
    • Optional overviewMapElementSelector: undefined | function

    Returns void

initLayerSet

isFeatureTooltipEnabled

  • isFeatureTooltipEnabled(): boolean
  • Returns boolean

queryFeatureTooltip

  • queryFeatureTooltip(pixel: [number, number]): void
  • Parameters

    • pixel: [number, number]

    Returns void

refreshMap

  • Parameters

    • name: string
    • Default value mode: RefreshMode = RefreshMode.LayersOnly | RefreshMode.SelectionOnly

    Returns void

refreshOnStateChange

  • refreshOnStateChange(map: RuntimeMap, showGroups: string[] | undefined, showLayers: string[] | undefined, hideGroups: string[] | undefined, hideLayers: string[] | undefined): void
  • Parameters

    • map: RuntimeMap
    • showGroups: string[] | undefined
    • showLayers: string[] | undefined
    • hideGroups: string[] | undefined
    • hideLayers: string[] | undefined

    Returns void

setMouseTooltip

  • setMouseTooltip(text: string): void
  • Parameters

    • text: string

    Returns void

showSelectedFeature

  • showSelectedFeature(mapExtent: Bounds, size: Size, map: RuntimeMap, selectionColor: string, featureXml: string | undefined): Promise<void>
  • Parameters

    • mapExtent: Bounds
    • size: Size
    • map: RuntimeMap
    • selectionColor: string
    • featureXml: string | undefined

    Returns Promise<void>

updateOverviewMapElement

  • updateOverviewMapElement(overviewMapElementSelector: function): void
  • Parameters

    • overviewMapElementSelector: function
        • (): null | Element
        • Returns null | Element

    Returns void

Generated using TypeDoc