Skip to content

createMapFromContext() ​

createMapFromContext(context, mapOptions): Map$1

Create a Maplibre map from a context; map options need to be provided. The function returns synchronously; all asynchronous modifications are stacked in a promise chain stored on the map.

Parameters ​

ParameterTypeDescription
contextMapContext-
mapOptionsMapOptions-

Returns ​

Map$1