stefanocudini / leaflet-panel-layers

Leaflet Control Layers extended with support groups and icons
https://opengeo.tech/maps/leaflet-panel-layers/
MIT License
286 stars 92 forks source link

zindex lost on layer change #21

Closed stefanocudini closed 1 year ago

stefanocudini commented 8 years ago

TODO setting zindex of current active layer to the max zindex

mkgrgis commented 5 years ago

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?

stefanocudini commented 5 years ago

getZoom is not zindex