resetMapFromContext() ​
resetMapFromContext(
map,context):Map
Resets an OpenLayers map from a context; existing content will be cleared. The function returns synchronously; all asynchronous modifications are stacked in a promise chain stored on the map.
Parameters ​
| Parameter | Type | Description |
|---|---|---|
map | Map | - |
context | MapContext | - |
Returns ​
Map