Skip to content

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 ​

ParameterTypeDescription
mapMap-
contextMapContext-

Returns ​

Map