Options
All
  • Public
  • Public/Protected
  • All
Menu

Provides contextual information for a map viewer

export

Hierarchy

  • MapViewerContext

Index

Constructors

constructor

Accessors

isMouseOverTooltip

  • get isMouseOverTooltip(): boolean
  • Returns boolean

Methods

clearMouseTooltip

  • clearMouseTooltip(): void
  • Returns void

enableFeatureTooltips

  • enableFeatureTooltips(enabled: boolean): void
  • Parameters

    • enabled: boolean

    Returns void

getLayerSet

getOverviewMap

  • getOverviewMap(): olOverviewMap
  • Returns olOverviewMap

handleFeatureTooltipMouseMove

handleMouseTooltipMouseMove

hideSelectedVectorFeaturesTooltip

  • hideSelectedVectorFeaturesTooltip(): void
  • Returns void

initContext

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

    • layerSet: MgLayerSet
    • Optional locale: undefined | string
    • Optional overviewMapElementSelector: undefined | function

    Returns void

initLayerSet

isFeatureTooltipEnabled

  • isFeatureTooltipEnabled(): boolean
  • Returns boolean

queryFeatureTooltip

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

    • pixel: [number, number]

    Returns void

queryWmsFeatures

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>

showSelectedVectorFeatures

  • showSelectedVectorFeatures(features: Collection<Feature>, pixel: [number, number], locale?: undefined | string): void
  • Parameters

    • features: Collection<Feature>
    • pixel: [number, number]
    • Optional locale: undefined | string

    Returns void

updateOverviewMapElement

  • updateOverviewMapElement(overviewMapElementSelector: function): void
  • Parameters

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

    Returns void

Generated using TypeDoc