Methods
(static) changeMapTarget(elementId, map)
Changes the maps target element (in the case the element is found).
Parameters:
Name | Type | Description |
---|---|---|
elementId |
string | The unique element edi of the map. |
map |
ol.Map | The map. |
- Source:
Example
//Change the current map and show it in the new element with the given unique element id.
changeMapTarget('myNewTargetId', myMap);
(static) updateMapTarget(element, map)
Updates the map target
Parameters:
Name | Type | Description |
---|---|---|
element |
HTMLElement | The new element for the map |
map |
ol.Map | The map. |
- Source: