Closed stefanocudini closed 1 year 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?
getZoom is not zindex
TODO setting zindex of current active layer to the max zindex