[OpenLayers-Commits] r2011 - in sandbox/vector/lib/OpenLayers: Control/EditingTool Geometry
commits at openlayers.org
commits at openlayers.org
Tue Dec 5 20:08:41 EST 2006
Author: camerons
Date: 2006-12-05 20:08:41 -0500 (Tue, 05 Dec 2006)
New Revision: 2011
Modified:
sandbox/vector/lib/OpenLayers/Control/EditingTool/Rotate.js
sandbox/vector/lib/OpenLayers/Geometry/Curve.js
Log:
Changed function getBoundingBox() to getBounds() to be consistent with the OpenLayers.Bounds class that is returned. This should have no functional impact.
Modified: sandbox/vector/lib/OpenLayers/Control/EditingTool/Rotate.js
===================================================================
--- sandbox/vector/lib/OpenLayers/Control/EditingTool/Rotate.js 2006-12-06 00:46:09 UTC (rev 2010)
+++ sandbox/vector/lib/OpenLayers/Control/EditingTool/Rotate.js 2006-12-06 01:08:41 UTC (rev 2011)
@@ -72,7 +72,7 @@
this.geometry = evt.targetGeometry;
// set the rotation center to the middle of the bbox
- var bbox = this.geometry.getBoundingBox();
+ var bbox = this.geometry.getBounds();
this.rotationCenter = new OpenLayers.Geometry.Point(bbox.x + bbox.width / 2, bbox.y + bbox.height / 2);
// set the rotation reference point
Modified: sandbox/vector/lib/OpenLayers/Geometry/Curve.js
===================================================================
--- sandbox/vector/lib/OpenLayers/Geometry/Curve.js 2006-12-06 00:46:09 UTC (rev 2010)
+++ sandbox/vector/lib/OpenLayers/Geometry/Curve.js 2006-12-06 01:08:41 UTC (rev 2011)
@@ -37,7 +37,7 @@
* @type OpenLayers.Bounds
*/
- getBoundingBox: function(){
+ getBounds: function(){
if (this.path.length > 0) {
var xmin, ymin, xmax, ymax = null;
for (var i=0; i<this.path.length; i++) {
More information about the Commits
mailing list