Skip to content

createMapFromContext() ​

createMapFromContext(context, target?): Promise<Map>

Create an OpenLayers map from a context; optionally specify a target (root element) for the map

Parameters ​

ParameterTypeDescription
contextMapContext
target?string | HTMLElement

Returns ​

Promise<Map>