[OpenLayers-Commits] r1996 - sandbox/vector/lib/OpenLayers/Geometry
commits at openlayers.org
commits at openlayers.org
Mon Dec 4 08:23:12 EST 2006
Author: pgiraud
Date: 2006-12-04 08:23:11 -0500 (Mon, 04 Dec 2006)
New Revision: 1996
Modified:
sandbox/vector/lib/OpenLayers/Geometry/Polygon.js
Log:
debug in toString method
corrects the in editing attributes tool
Modified: sandbox/vector/lib/OpenLayers/Geometry/Polygon.js
===================================================================
--- sandbox/vector/lib/OpenLayers/Geometry/Polygon.js 2006-12-04 11:44:29 UTC (rev 1995)
+++ sandbox/vector/lib/OpenLayers/Geometry/Polygon.js 2006-12-04 13:23:11 UTC (rev 1996)
@@ -33,7 +33,12 @@
*/
toString: function() {
// TBD this.path doesn't exist
- return this.path.toString();
+ return "foo bar";
+
+ // The following is not correct
+ // Because it only takes the first linearRing into account
+ // It may be sufficient though
+ // return this.linearRings[0].path.toString();
},
CLASS_NAME: "OpenLayers.Geometry.Polygon"
More information about the Commits
mailing list