]> git.openstreetmap.org Git - rails.git/commitdiff
Never disable a base layer
authorTom Hughes <tom@compton.nu>
Fri, 25 Nov 2011 13:45:25 +0000 (13:45 +0000)
committerTom Hughes <tom@compton.nu>
Fri, 25 Nov 2011 13:45:25 +0000 (13:45 +0000)
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);
             }
          }