From 3030c421b5b0f4a0dfa7d9e671c3c8172b785a71 Mon Sep 17 00:00:00 2001 From: euzuro Date: Tue, 11 Jul 2006 01:01:23 +0000 Subject: [PATCH] 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 --- 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 c56adc3fa7..17c89b6c5e 100644 --- a/lib/OpenLayers/Map.js +++ b/lib/OpenLayers/Map.js @@ -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"); }