]> git.openstreetmap.org Git - rails.git/blobdiff - public/javascripts/map.js
Correct versions of z12/13 keys
[rails.git] / public / javascripts / map.js
index 2bdba6229b589b8d52ae3a96fd8e21e5d8b361d9..291fd18fa29ff645520a1038b0dfa92e338d9bc6 100644 (file)
@@ -157,7 +157,11 @@ function setMapLayers(layerConfig) {
    for (var layers = map.getLayersBy("isBaseLayer", false), i = 0; i < layers.length; i++) {
       var c = layerConfig.charAt(l++);
 
-      layers[i].setVisibility(c == "T");
+      if (c == "T") {
+         layers[i].setVisibility(true);
+      } else if(c == "F") {
+         layers[i].setVisibility(false);
+      }
    }
 }