#856 - fix up clone method for vector features - give the geometry base class a clone (though it will likely never be used)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@3788 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Tim Schaub
2007-07-23 19:54:58 +00:00
parent fd4d2918f1
commit 892a4042a1
4 changed files with 51 additions and 10 deletions

View File

@@ -49,6 +49,18 @@ OpenLayers.Geometry = OpenLayers.Class({
this.bounds = null;
},
/**
* APIMethod: clone
* Create a clone of this geometry. Does not set any non-standard
* properties of the cloned geometry.
*
* Return:
* {<OpenLayers.Geometry>} An exact clone of this geometry.
*/
clone: function() {
return new OpenLayers.Geometry();
},
/**
* Set the bounds for this Geometry.
*