/layer/formats/maplibre
The maplibre format module imports the maplibre-gl library from esm and assigns the right-to-left [rtl] language module to display arabic labels correctly.
The rtl plugin will be loaded from the xyz host public directory.
- Source
Requires
Methods
(inner) maplibre(layer) → {layer}
The maplibre format method will create a new MaplibreGL.Map() class object in a layer.container element. The layer.container is prepended to the Openlayers mapview.Map target element. A custom Openlayers.layer object will position the Maplibre Map object and return the rendered map into the container.
Name | Type | Description |
---|---|---|
layer | layer | JSON layer |
Name | Type | Description |
---|---|---|
layer.style | Object | |
style.URL | string | The location of a mvt stylesheet. |
layer.accessToken | string | An accessToken is required to access tiles and stylesheets from the Mapbox API. |
layer.preserveDrawingBuffer | boolean | The preserveDrawingBuffer flag is required in order to render to canvas for screenshots. |
- Source
layer decorated with format methods.
- Type:
- layer