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:
@@ -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"); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user