Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MapPopupCls

map popup class

augments

MapInteractionBase

Hierarchy

Index

Constructors

constructor

Properties

_initialized

_initialized: boolean

_map

_map: Map

_subtype

_subtype: string

Accessors

initialized

  • get initialized(): boolean
  • get if is initialized

    Returns boolean

    is initialized

map

  • get map(): Map
  • get reference to the ol map object

    Returns Map

    the map object

Methods

Private _addPopupLayer

  • Parameters

    Returns Vector

    the new selection layer

Protected _checkInit

  • _checkInit(): void
  • Check the initialization status and throw exception if not valid yet

    Returns void

Private _featuresAtPixel

  • Parameters

    • pixel: [number, number]

      the ol pixel

    Returns Array<FeatureLayerProperties>

    feature layer properties

Private _triggerFeatSelect

  • _triggerFeatSelect(): void
  • helper to select features

    Returns void

addMapClickFunction

  • addMapClickFunction(func: Function): void
  • Add a function to be called when the map is clicked but before any popups are implemented

    Parameters

    • func: Function

      the map click function

    Returns void

addMapServicePopup

  • Parameters

    Returns Vector

    a reference to the ol selection layer

addMapServicePopupContent

  • addMapServicePopupContent(feature: Feature, lyr: LayerEsriMapServer, popupContent: string, esriName: string): void
  • Parameters

    • feature: Feature

      the ol feature

    • lyr: LayerEsriMapServer

      the map server layer

    • popupContent: string

      popup content

    • esriName: string

      esri layer name

    Returns void

addPopupChangedFunction

  • Parameters

    Returns void

addVectorPopup

  • Add popup to the map

    Parameters

    • lyr: LayerBaseVector

      The layer that the popup with act on

    • popupContentFunction: popupCallback

      popup content function that makes popup info

    • Optional selectionStyle: object
      • Optional color?: string
      • Optional olStyle?: Style
      • Optional width?: number

    Returns Vector

    a reference to the ol selection layer

checkInit

  • checkInit(): void
  • Check the initialization status and throw exception if not valid yet

    Returns void

clearSelection

  • clearSelection(): void
  • Returns void

closePopup

  • closePopup(): boolean
  • Returns boolean

init

  • init(theMap: Map): void
  • map popup initialization

    Parameters

    • theMap: Map

      the ol map

    Returns void

removeVectorPopup

  • Parameters

    Returns void

Generated using TypeDoc