DeleteFeature.js | |
Properties | |
layer | {<OpenLayers.Layer.Vector>} |
selectControl | {<OpenLayers.Control.SelectFeature>} |
handlers | {Object} |
Functions | |
OpenLayers. | Create a new delete feature control. |
selectFeature | When a feature is selected by this control, set the state to DELETE. |
unselectFeature | When a feature is unselected by this control, reset the state to null. |
handleKeypress | Called by the feature handler on keypress. |
deleteFeatures | Trigger “beforefeaturesdeleted” and “deletefeatures” events with layer selected features as features to delete. |
setMap | Set the map property for the control and all handlers. |
activate | Explicitly activates a control and it’s associated handlers if one has been set. |
deactivate | Deactivates a control and it’s associated handlers if any. |
When a feature is selected by this control, set the state to DELETE.
selectFeature: function( feature )
When a feature is unselected by this control, reset the state to null.
unselectFeature: function( feature )
Called by the feature handler on keypress.
handleKeypress: function( evt )
Trigger “beforefeaturesdeleted” and “deletefeatures” events with layer selected features as features to delete.
deleteFeatures: function ( options )
Set the map property for the control and all handlers.
setMap: function( map )
Explicitly activates a control and it’s associated handlers if one has been set.
activate: function ()
Deactivates a control and it’s associated handlers if any.
deactivate: function ()