leaflet-panel-layers
leaflet-panel-layers copied to clipboard
zindex lost on layer change
TODO setting zindex of current active layer to the max zindex
Here is an external implementation
Map.on('baselayerchange', function(e) { if (e.layer.options.maxZoom){ var lm = e.layer.options.maxZoom; var z = planetMap.getZoom(); z = Math.min(lm, z) planetMap.setZoom(z); } } );
In which line can i add an internal implementation?
getZoom is not zindex