diff --git a/lib/OpenLayers/Map.js b/lib/OpenLayers/Map.js index 0789c4687a..ef5a475e68 100644 --- a/lib/OpenLayers/Map.js +++ b/lib/OpenLayers/Map.js @@ -1849,7 +1849,7 @@ OpenLayers.Map = OpenLayers.Class({ bounds = this.baseLayer.getExtent(); - for (var i=0, len=this.layers.length; i=0; --i) { var layer = this.layers[i]; if (layer !== this.baseLayer && !layer.isBaseLayer) { var inRange = layer.calculateInRange();