Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MapMoveCls

assists with map move interactions, trigger callback functions

augments

MapInteractionBase

Hierarchy

Index

Constructors

constructor

Properties

_arrLayer

_arrLayer: Array<LayerBaseVector>

_arrLyrRequest

_arrLyrRequest: Array<any>

_arrLyrTimeout

_arrLyrTimeout: Array<number>

_initialized

_initialized: boolean

_lookupLayer

_lookupLayer: Object

_map

_map: Map

_mapExtent

_mapExtent: extentObject

_mapMoveCallbackContext

_mapMoveCallbackContext: Array<Object>

_mapMoveCallbackDelays

_mapMoveCallbackDelays: Array<number>

_mapMoveCallbackTimeout

_mapMoveCallbackTimeout: Array<number>

_mapMoveCallbacks

_mapMoveCallbacks: Array<mapMoveCallbackFunction>

_mapMoveCallbacksLookup

_mapMoveCallbacksLookup: Object

_subtype

_subtype: string

_zoomLevel

_zoomLevel: number

Accessors

initialized

  • get initialized(): boolean

map

  • get map(): Map

mapExtent

Methods

Protected _checkInit

  • _checkInit(): void

_updateMapExtent

  • _updateMapExtent(): void

addCallback

  • addCallback(func: mapMoveCallbackFunction, context?: any, delay?: number, triggerOnAdd?: boolean, functionId?: string): void
  • add a callback to the map move event

    Parameters

    • func: mapMoveCallbackFunction

      callback function

    • Optional context: any

      the context to use for this function

    • Optional delay: number
    • Optional triggerOnAdd: boolean

      if the layer should be loaded on add to mapMove

    • Optional functionId: string

      optional id to reference the function later for outside triggering

    Returns void

addVectorLayer

  • Add a layer to the interaction

    Parameters

    • lyr: LayerBaseVector

      layer to add

    • Default value triggerOnAdd: boolean = true

      if the layer should be loaded on add

    Returns void

checkInit

  • checkInit(): void

init

  • init(theMap: Map): void

triggerLyrLoad

  • triggerLyrLoad(lyr: LayerBaseVector, index?: number, eventType?: string): void
  • Trigger the layer load

    Parameters

    • lyr: LayerBaseVector

      the layer being acted on

    • Optional index: number

      index of the layer

    • Optional eventType: string

      the event triggering the load, as 'change:center' or 'change:resolution'

    Returns void

triggerMoveCallback

  • triggerMoveCallback(ind: number, eventType?: string, functionId?: string): void
  • trigger the map move call back at the given index

    Parameters

    • ind: number

      the index of the layer

    • Optional eventType: string
    • Optional functionId: string

    Returns void

Generated using TypeDoc