if we allow a non-minor setCenter to get into this loop, then even if the last setCenter() on a drag is to the same center point and zoom, the moveTo()s of the layers will still get called with non-minor parameter -- in the case of Untiled, we need this to redraw the layer on move end.

git-svn-id: http://svn.openlayers.org/trunk/openlayers@927 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-07-11 01:01:23 +00:00
parent 5a5c0f349d
commit 3030c421b5

View File

@@ -468,7 +468,7 @@ OpenLayers.Map.prototype = {
// if neither center nor zoom will change, no need to do anything
if (zoomChanged || centerChanged) {
if (zoomChanged || centerChanged || !minor) {
if (!minor) { this.events.triggerEvent("movestart"); }