the 'moveend' event was not getting properly triggered on the end of a drag... because the setCenter() was not passing a new center or zoom. move it outside the if clause and all is well.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@823 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -466,9 +466,10 @@ OpenLayers.Map.prototype = {
|
|||||||
this.events.triggerEvent("move");
|
this.events.triggerEvent("move");
|
||||||
|
|
||||||
if (zoomChanged) { this.events.triggerEvent("zoomend"); }
|
if (zoomChanged) { this.events.triggerEvent("zoomend"); }
|
||||||
if (!minor) { this.events.triggerEvent("moveend"); }
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// even if nothing was done, we want to notify of this
|
||||||
|
if (!minor) { this.events.triggerEvent("moveend"); }
|
||||||
},
|
},
|
||||||
|
|
||||||
/** This function takes care to recenter the layerContainerDiv
|
/** This function takes care to recenter the layerContainerDiv
|
||||||
|
|||||||
Reference in New Issue
Block a user