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 4a2925c..e2f06ba 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);
             }
          }