X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/1635c165608b9619f0b04eba508351afc3602292..7bf44e6870ba3448080a5453a43799562174ae48:/public/javascripts/map.js?ds=inline 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);