Class: MapMoveCls

MapMoveCls

assists with map move interactions, trigger callback functions

Constructor

new MapMoveCls()

constructor called implicitly
Source:

Extends

Members

initialized

get if is initialized
Inherited From:
Source:

map

get reference to the ol map object
Inherited From:
Source:

mapExtent

return the map extent
Source:

Methods

(protected) _checkInit()

Check the initialization status and throw exception if not valid yet
Inherited From:
Source:

addCallback(func, context, delayopt, triggerOnAddopt, functionIdopt)

add a callback to the map move event
Parameters:
Name Type Attributes Default Description
func mapMoveCallbackFunction callback function
context * the context to use for this function
delay number <optional>
50 the delay before call load
triggerOnAdd boolean <optional>
true if the layer should be loaded on add to mapMove
functionId string <optional>
optional id to reference the function later for outside triggering
Source:

addVectorLayer(lyr, triggerOnAddopt)

Add a layer to the interaction
Parameters:
Name Type Attributes Default Description
lyr LayerBaseVector | * layer to add
triggerOnAdd boolean <optional>
true if the layer should be loaded on add
Source:

checkInit()

Check the initialization status and throw exception if not valid yet
Inherited From:
Source:

init(theMap)

initialize the map move object
Parameters:
Name Type Description
theMap ol.Map the ol map
Overrides:
Source:

triggerLyrLoad(lyr, indexopt, eventTypeopt)

Trigger the layer load
Parameters:
Name Type Attributes Description
lyr LayerBaseVector | * the layer being acted on
index number <optional>
index of the layer
eventType string | * <optional>
the event triggering the load, as 'change:center' or 'change:resolution'
Source:

triggerMoveCallback(ind, eventTypeopt, functionIdopt)

trigger the map move call back at the given index
Parameters:
Name Type Attributes Description
ind number the index of the layer
eventType string | * <optional>
the event triggering the load as 'change:center' or 'change:resolution'
functionId string <optional>
the function id used to reference the added callback function
Source: