Path: blob/main/docs/advanced_guide/custom_panes.md
1601 views
Panes and CustomPane
Panes are used to control the ordering of layers on the map. You can customise them using the CustomPane
class.
For more info on the panes Leaflet has, see https://leafletjs.com/reference.html#map-pane.
First we'll load geojson data to use in the examples:
Map without custom pane
We'll make an example to show how the GeoJson we add hides any labels underneath.
Map with custom pane
Now we'll create a custom pane and add a tile layer that contains only labels. The labels will show on top off the geojson.