Don't process overlay layers in old-style layer configurations
There are no overlay layers that we actually want to be persistent, and the removal of the maplint layer means that old configurations generally open the wrong overlays now anyway.
This commit is contained in:
parent
b3d92954d3
commit
2def7c187e
1 changed files with 0 additions and 14 deletions
|
@ -244,20 +244,6 @@ function setMapLayers(layerConfig) {
|
|||
map.setBaseLayer(layers[i]);
|
||||
}
|
||||
}
|
||||
|
||||
while (layerConfig.charAt(l) == "B" || layerConfig.charAt(l) == "0") {
|
||||
l++;
|
||||
}
|
||||
|
||||
for (var layers = map.getLayersBy("isBaseLayer", false), i = 0; i < layers.length; i++) {
|
||||
var c = layerConfig.charAt(l++);
|
||||
|
||||
if (c == "T") {
|
||||
layers[i].setVisibility(true);
|
||||
} else if(c == "F") {
|
||||
layers[i].setVisibility(false);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
for (var i = 0; i < map.layers.length; i++) {
|
||||
if (map.layers[i].layerCode) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue