X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e7cd90f4b4d431b32a92ca68c3df817e8e765d09..7c98b41cc89068d049a18f8738276f19cd47095e:/public/javascripts/map.js diff --git a/public/javascripts/map.js b/public/javascripts/map.js index 66ed9e909..58950a1ff 100644 --- a/public/javascripts/map.js +++ b/public/javascripts/map.js @@ -251,6 +251,8 @@ function setMapLayers(layerConfig) { if (c == "B") { map.setBaseLayer(layers[i]); + } else { + map.layers[i].setVisibility(false); } } } else { @@ -260,7 +262,7 @@ function setMapLayers(layerConfig) { if (map.layers[i].isBaseLayer) { map.setBaseLayer(map.layers[i]); } else { - map.layers[i].setVisibility(true); + map.layers[i].setVisibility(true); } } else { map.layers[i].setVisibility(false);