Adding a 'sketchstarted' event on the vector layer. This event is triggered at the start of each new sketch. r=ahocevar (closes #1945)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9269 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -81,9 +81,14 @@ OpenLayers.Layer.Vector = OpenLayers.Class(OpenLayers.Layer, {
|
||||
* property referencing the vertex modified (always a point geometry),
|
||||
* and a *pixel* property referencing the pixel location of the
|
||||
* modification.
|
||||
* sketchstarted - Triggered when a feature sketch bound for this layer
|
||||
* is started. Listeners will receive an object with a *feature*
|
||||
* property referencing the new sketch feature and a *vertex* property
|
||||
* referencing the creation point.
|
||||
* sketchmodified - Triggered when a feature sketch bound for this layer
|
||||
* is modified. Listeners will receive an object with a *vertex*
|
||||
* property referencing the modified vertex.
|
||||
* property referencing the modified vertex and a *feature* property
|
||||
* referencing the sketch feature.
|
||||
* sketchcomplete - Triggered when a feature sketch bound for this layer
|
||||
* is complete. Listeners will receive an object with a *feature*
|
||||
* property referencing the sketch feature. By returning false, a
|
||||
@@ -96,8 +101,8 @@ OpenLayers.Layer.Vector = OpenLayers.Class(OpenLayers.Layer, {
|
||||
"beforefeatureremoved", "featureremoved", "featuresremoved",
|
||||
"beforefeatureselected", "featureselected", "featureunselected",
|
||||
"beforefeaturemodified", "featuremodified", "afterfeaturemodified",
|
||||
"vertexmodified", "sketchmodified", "sketchcomplete",
|
||||
"refresh"],
|
||||
"vertexmodified", "sketchstarted", "sketchmodified",
|
||||
"sketchcomplete", "refresh"],
|
||||
|
||||
/**
|
||||
* APIProperty: isBaseLayer
|
||||
|
||||
Reference in New Issue
Block a user