#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:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user