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

@@ -70,7 +70,7 @@ OpenLayers.Control.MouseDefaults.prototype =
var newXY = new OpenLayers.Pixel(size.w / 2 + deltaX,
size.h / 2 + deltaY);
var newCenter = this.map.getLonLatFromScreenPx( newXY );
this.map.setCenter(newCenter);
this.map.setCenter(newCenter, null, true);
this.mouseDragStart = evt.xy.copyOf();
}
}
@@ -95,6 +95,8 @@ OpenLayers.Control.MouseDefaults.prototype =
), zoom);
this.map.viewPortDiv.removeChild(document.getElementById("zoomBox"));
this.zoomBox = null;
} else {
this.map.setCenter(this.map.center);
}
this.mouseDragStart = null;
this.map.div.style.cursor = "default";