new Maplibre(options [, tileoptions])
Layer that use Maplibre GL as render
Parameters:
Name | Type | Argument | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
any | layer options Properties
|
||||||||||
tileoptions |
olx.source.WMTSOptions |
<optional> |
WMTS options if not defined default are used |
Extends
- ol.layer.Layer
Methods
-
getMapGL()
-
Get the Maplibre map
Returns:
- Type
- Object
-
getStyle()
-
Returns the map's Mapbox style object.
Returns:
- Type
- Object
-
setStyle(style)
-
Set style
Parameters:
Name Type Description style
Object | string Mapbox style Object or a URL to JSON