Methods for programmatically manipulating sketches while digitizing features. r=bartvde (closes #3343)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12103 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -127,7 +127,17 @@ OpenLayers.Handler.Polygon = OpenLayers.Class(OpenLayers.Handler.Path, {
|
||||
}
|
||||
OpenLayers.Handler.Path.prototype.addPoint.apply(this, arguments);
|
||||
},
|
||||
|
||||
|
||||
/**
|
||||
* Method: getCurrentPointIndex
|
||||
*
|
||||
* Returns:
|
||||
* {Number} The index of the most recently drawn point.
|
||||
*/
|
||||
getCurrentPointIndex: function() {
|
||||
return this.line.geometry.components.length - 2;
|
||||
},
|
||||
|
||||
/**
|
||||
* Method: enforceTopology
|
||||
* Simple topology enforcement for drawing interior rings. Ensures vertices
|
||||
|
||||
Reference in New Issue
Block a user