Stop default layer flickering when notes or data are shown
This commit is contained in:
parent
ead9695fb6
commit
ba8bc1a37f
1 changed files with 2 additions and 4 deletions
|
@ -59,14 +59,12 @@ $(document).ready(function () {
|
|||
if (layerParam.indexOf(layers[i].options.code) >= 0) {
|
||||
map.addLayer(layers[i]);
|
||||
layersAdded = layersAdded + layers[i].options.code;
|
||||
} else if (i == 0 && layersAdded == "") {
|
||||
map.addLayer(layers[i]);
|
||||
} else {
|
||||
map.removeLayer(layers[i]);
|
||||
}
|
||||
}
|
||||
|
||||
if (layersAdded == "") {
|
||||
map.addLayer(layers[0]);
|
||||
}
|
||||
}
|
||||
|
||||
updateLayers(params);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue