DeleteFeature.js

Summary
DeleteFeature.js
Properties
geometryTypes{Array(String)} To restrict remove to a limited set of geometry types, send a list of strings corresponding to the geometry class names.
onDone{Function} TBD add comment here
layer{OpenLayers.Layer.Vector}
feature{OpenLayers.Feature.Vector}
selectControl{<OpenLayers.Control.Select>}
featureHandler{OpenLayers.Handler.Keyboard}
Constructor
OpenLayers.Control.DragFeatureCreate a new control to drag features.
Functions
destroyTake care of things that are not handled in superclass
activateActivate the control and the feature handler.
deactivateDeactivate the control and all handlers.
onSelectCalled when the select feature control selects a feature.
onUnselectCalled when the select feature control unselects a feature.
defaultKeyPress
removeRemoves currently selected feature
setMapSet the map property for the control and all handlers.

Properties

geometryTypes

{Array(String)} To restrict remove to a limited set of geometry types, send a list of strings corresponding to the geometry class names.

onDone

{Function} TBD add comment here

Parameters

feature{OpenLayers.Feature.Vector} The feature that was removed.

layer

{OpenLayers.Layer.Vector}

feature

{OpenLayers.Feature.Vector}

selectControl

{<OpenLayers.Control.Select>}

featureHandler

{OpenLayers.Handler.Keyboard}

Constructor

OpenLayers.Control.DragFeature

Create a new control to drag features.

Parameters

layer{OpenLayers.Layer.Vector} The layer containing features to be dragged.
options{Object} Optional object whose properties will be set on the control.

Functions

destroy

destroy: function()

Take care of things that are not handled in superclass

activate

activate: function()

Activate the control and the feature handler.

Returns

{Boolean} Successfully activated the control and feature handler.

deactivate

deactivate: function()

Deactivate the control and all handlers.

Returns

{Boolean} Successfully deactivated the control.

onSelect

onSelect: function(feature)

Called when the select feature control selects a feature.

Parameters

feature{OpenLayers.Feature.Vector} The selected feature.

onUnselect

onUnselect: function(feature)

Called when the select feature control unselects a feature.

Parameters

feature{OpenLayers.Feature.Vector} The unselected feature.

defaultKeyPress

defaultKeyPress: function (code)

Parameters

code{Integer}

remove

remove: function(feature)

Removes currently selected feature

Parameters

code{Integer}

setMap

setMap: function(map)

Set the map property for the control and all handlers.

Parameters

map{OpenLayers.Map} The control’s map.
destroy: function()
Take care of things that are not handled in superclass
activate: function()
Activate the control and the feature handler.
deactivate: function()
Deactivate the control and all handlers.
onSelect: function(feature)
Called when the select feature control selects a feature.
onUnselect: function(feature)
Called when the select feature control unselects a feature.
defaultKeyPress: function (code)
remove: function(feature)
Removes currently selected feature
setMap: function(map)
Set the map property for the control and all handlers.