You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The root of the problem is that the .leaflet-gl-layer container has position: relative; which causes the second layer to be placed just outside of the viewport. It also seems that the zIndex option is not working, which causes problems when combining maplibre-gl layer with other leaflet layers. But I would consider this a separate issue.
The text was updated successfully, but these errors were encountered:
Leaflet allows you to control this by using "panes". Depending on the situation you can create your own "custom pane" and define its z-index. Check out this article: https://leafletjs.com/examples/map-panes/
This is a minimal example showing the problem and a quick fix.
The root of the problem is that the
.leaflet-gl-layer
container hasposition: relative;
which causes the second layer to be placed just outside of the viewport. It also seems that thezIndex
option is not working, which causes problems when combining maplibre-gl layer with other leaflet layers. But I would consider this a separate issue.The text was updated successfully, but these errors were encountered: