update several plugins to use window.addLayerGroup, instead of manually adding the layer to the map and Layer control.
this gives automatic handling of remembering shown/hidden layers also, draw tools plugin hides the controls while the drawn items layer is hidden
This commit is contained in:
@ -116,7 +116,7 @@ window.plugin.maxLinks.setup = function() {
|
||||
window.plugin.maxLinks.updateLayer();
|
||||
});
|
||||
window.map.on('zoomend moveend', window.plugin.maxLinks.updateLayer);
|
||||
window.layerChooser.addOverlay(window.plugin.maxLinks.layer, 'Maximum Links');
|
||||
window.addLayerGroup('Maximum Links', window.plugin.maxLinks.layer);
|
||||
}
|
||||
var setup = window.plugin.maxLinks.setup;
|
||||
|
||||
|
Reference in New Issue
Block a user