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
This commit is contained in:
euzuro
2006-10-05 20:07:42 +00:00
parent 6366edc515
commit ad545a0280

View File

@@ -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);
}
}