[OpenLayers-Commits] r2012 - in sandbox/vector/lib/OpenLayers: Control/EditingTool Geometry

commits at openlayers.org commits at openlayers.org
Tue Dec 5 21:09:13 EST 2006


Author: camerons
Date: 2006-12-05 21:09:12 -0500 (Tue, 05 Dec 2006)
New Revision: 2012

Modified:
   sandbox/vector/lib/OpenLayers/Control/EditingTool/Rotate.js
   sandbox/vector/lib/OpenLayers/Geometry/Curve.js
Log:
reverse version 2011

Modified: sandbox/vector/lib/OpenLayers/Control/EditingTool/Rotate.js
===================================================================
--- sandbox/vector/lib/OpenLayers/Control/EditingTool/Rotate.js	2006-12-06 01:08:41 UTC (rev 2011)
+++ sandbox/vector/lib/OpenLayers/Control/EditingTool/Rotate.js	2006-12-06 02:09:12 UTC (rev 2012)
@@ -72,7 +72,7 @@
             this.geometry = evt.targetGeometry;
 
             // set the rotation center to the middle of the bbox
-            var bbox = this.geometry.getBounds();
+            var bbox = this.geometry.getBoundingBox();
             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 01:08:41 UTC (rev 2011)
+++ sandbox/vector/lib/OpenLayers/Geometry/Curve.js	2006-12-06 02:09:12 UTC (rev 2012)
@@ -37,7 +37,7 @@
      * @type OpenLayers.Bounds
      */
     
-    getBounds: function(){
+    getBoundingBox: 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