From ad545a028009f3fc7432dc0abc9c38362ef028dc Mon Sep 17 00:00:00 2001 From: euzuro Date: Thu, 5 Oct 2006 20:07:42 +0000 Subject: [PATCH] only move the visible and in range layers. the rest can redraw themselves when they come back into the picture. git-svn-id: http://svn.openlayers.org/trunk/openlayers@1608 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Map.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/OpenLayers/Map.js b/lib/OpenLayers/Map.js index 8b0c31775b..086b43a13a 100644 --- a/lib/OpenLayers/Map.js +++ b/lib/OpenLayers/Map.js @@ -698,7 +698,7 @@ OpenLayers.Map.prototype = { this.events.triggerEvent("changelayer"); } - if (zoomChanged || (layer.display && layer.inRange)) { + if (layer.visibility && layer.inRange) { layer.moveTo(bounds, zoomChanged, dragging); } }