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:
@@ -698,7 +698,7 @@ OpenLayers.Map.prototype = {
|
|||||||
this.events.triggerEvent("changelayer");
|
this.events.triggerEvent("changelayer");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (zoomChanged || (layer.display && layer.inRange)) {
|
if (layer.visibility && layer.inRange) {
|
||||||
layer.moveTo(bounds, zoomChanged, dragging);
|
layer.moveTo(bounds, zoomChanged, dragging);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user