Create a new MapLibre GL layer in a Leaflet-compatible wrapper.
Extends: L.Class
options
is an object of options. All options given are passed to a MapLibre GL Map
object,
so consult the MapLibre GL .Map documentation
for the full range.
Option | Value | Description |
---|---|---|
padding | number | [0.15] |
interactive | boolean | [false] |
Same behavior as .addTo
on any Leaflet layer: this adds the layer to a given
map or group.
Returns maplibre-gl.Map
object.
Returns layer's DOM container div
.
Returns maplibre-gl.Map
canvas.
Returns layer size in pixels including padding.
Returns layer bounds including padding.
Returns the pane name set in options if it is a valid pane, defaults to tilePane.