]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/map.js.erb
Never disable a base layer
[rails.git] / app / assets / javascripts / map.js.erb
index 4a2925c7bd8c48131ed41bf1f0d808a1a83fa60f..e2f06babb695b40cb3e757562624dfaa514de3ef 100644 (file)
@@ -268,7 +268,7 @@ function setMapLayers(layerConfig) {
                } else {
                   map.layers[i].setVisibility(true);
                }
-            } else {
+            } else if (!map.layers[i].isBaseLayer) {
                map.layers[i].setVisibility(false);
             }
          }