From: Tom Hughes Date: Thu, 12 Aug 2010 23:09:41 +0000 (+0100) Subject: Don't process overlay layers in old-style layer configurations X-Git-Tag: live~6322^2~11 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/2def7c187e32d99cd48c013ab117c463780ed45e Don't process overlay layers in old-style layer configurations There are no overlay layers that we actually want to be persistent, and the removal of the maplint layer means that old configurations generally open the wrong overlays now anyway. --- diff --git a/public/javascripts/map.js b/public/javascripts/map.js index 272913d20..0668b8ab0 100644 --- a/public/javascripts/map.js +++ b/public/javascripts/map.js @@ -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) {