Methods
(inner) addPointerLayerToMap(map)
Adds a pointerLayer to a map.
Parameters:
Name | Type | Description |
---|---|---|
map |
ol.Map | The map. |
- Source:
(inner) addPointerLayerToViewport(viewport)
Adds a pointerLayer to a viewport.
Parameters:
Name | Type | Description |
---|---|---|
viewport |
* | The viewport. |
- Source:
(inner) generatePointerLayer()
Creates an Openlayers layer with a pointer marker.
- Source:
Returns:
An Openlayers layer with a pointer marker.
(inner) getUpdateMapPointerFunction(map) → {function}
Gets a function for updating the map pointer.
Parameters:
Name | Type | Description |
---|---|---|
map |
ol.Map | The map. |
- Source:
Returns:
The map pointer update function.
- Type
- function
(inner) updatePointer(map, position)
Updates the pointer for the map to the given position.
Parameters:
Name | Type | Description |
---|---|---|
map |
ol.Map | The map to update. The map needs to previously have added a pointer layer generated using the generatePointerLayer function. |
position |
Array.<number> | The position in the maps coordinates. |
- Source:
(inner) updateViewportPointer()
Function for updating a viewport pointer.
- Source: