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:
@ -77,8 +77,7 @@ var setup = function() {
|
||||
}")
|
||||
.appendTo("head");
|
||||
|
||||
window.layerChooser.addOverlay(window.plugin.portalLevelNumbers.levelLayerGroup, 'Portal Levels');
|
||||
map.addLayer(window.plugin.portalLevelNumbers.levelLayerGroup);
|
||||
window.addLayerGroup('Portal Levels', window.plugin.portalLevelNumbers.levelLayerGroup, true);
|
||||
|
||||
window.addHook('portalAdded', window.plugin.portalLevelNumbers.portalAdded);
|
||||
}
|
||||
|
Reference in New Issue
Block a user