]> git.openstreetmap.org Git - rails.git/blobdiff - public/javascripts/map.js
Don't process overlay layers in old-style layer configurations
[rails.git] / public / javascripts / map.js
index 272913d203c2ae8462888ff84ae1e85b748d2f7e..0668b8ab055c532460f0062ad22c1b8768657af9 100644 (file)
@@ -244,20 +244,6 @@ function setMapLayers(layerConfig) {
             map.setBaseLayer(layers[i]);
          }
       }
-
-      while (layerConfig.charAt(l) == "B" || layerConfig.charAt(l) == "0") {
-         l++;
-      }
-
-      for (var layers = map.getLayersBy("isBaseLayer", false), i = 0; i < layers.length; i++) {
-         var c = layerConfig.charAt(l++);
-
-         if (c == "T") {
-            layers[i].setVisibility(true);
-         } else if(c == "F") {
-            layers[i].setVisibility(false);
-         }
-      }
    } else {
       for (var i = 0; i < map.layers.length; i++) {
          if (map.layers[i].layerCode) {