OpenLayers.Control.EditFeature_Delete

Inherits From

Summary
OpenLayers.Control.EditFeature_Delete
Constants
i18n_delete_confirm_message{String} Delete confirm message
Functions
OpenLayers.Control.EditFeature_DeleteCreate a new EditFeature_Delete control.
setFeatureControlCreate a DeleteFeature control and assign it to this control.
beforeFeaturesDeletedCalled when the user triggers the ‘beforefeaturesdeleted’ event, i.e.
deleteFeaturesCalled when the user triggers the ‘deletefeatures’ event, i.e.

Constants

i18n_delete_confirm_message

{String} Delete confirm message

Functions

OpenLayers.Control.EditFeature_Delete

Create a new EditFeature_Delete control.

Parameters

options{Object} Optional object whose properties will be set on the control.

setFeatureControl

setFeatureControl: function(layer)

Create a DeleteFeature control and assign it to this control.

Parameters

layer{<OpenLayers.Layer.Vector>} The vector layer to assign the DeleteFeature control to.

beforeFeaturesDeleted

beforeFeaturesDeleted: function (event)

Called when the user triggers the ‘beforefeaturesdeleted’ event, i.e. on ‘del’ keypress.  Displays a confirm message to make sure the user really wants to delete the selected features.

Parameters

event{<OpenLayers.Event>}

deleteFeatures

deleteFeatures: function (event)

Called when the user triggers the ‘deletefeatures’ event, i.e. on ‘del’ keypress AND confirmed the deletion of features.

The event contains the reference of the features to be deleted (from the layer’s selected features array).

Parameters

event{<OpenLayers.Event>}
setFeatureControl: function(layer)
Create a DeleteFeature control and assign it to this control.
beforeFeaturesDeleted: function (event)
Called when the user triggers the ‘beforefeaturesdeleted’ event, i.e.
deleteFeatures: function (event)
Called when the user triggers the ‘deletefeatures’ event, i.e.
N.B.
Close