Commit changes to include a 'minor' flag on setCenter, that indicates that a map should not call the moveend trigger.

git-svn-id: http://svn.openlayers.org/trunk/openlayers@558 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2006-06-08 16:13:42 +00:00
parent 6c32dd0ff8
commit 7d0b489e42
3 changed files with 17 additions and 10 deletions

View File

@@ -383,7 +383,7 @@ OpenLayers.Map.prototype = {
* @param {OpenLayers.LonLat} lonlat
* @param {int} zoom
*/
setCenter: function (lonlat, zoom) {
setCenter: function (lonlat, zoom, minor) {
if (this.center) { // otherwise there's nothing to move yet
this.moveLayerContainer(lonlat);
}
@@ -395,9 +395,9 @@ OpenLayers.Map.prototype = {
this.zoom = zoom;
}
this.events.triggerEvent("movestart");
if (!minor) this.events.triggerEvent("movestart");
this.moveToNewExtent(zoomChanged);
this.events.triggerEvent("moveend");
if (!minor) this.events.triggerEvent("moveend");
},
/**