OpenLayers.Control.EditFeature_Drag

Inherits From

Summary
OpenLayers.Control.EditFeature_Drag
Properties
dragControl{<OpenLayers.Control.ModifyFeature>}
Functions
OpenLayers.Control.EditFeature_SplitCreate a new EditFeature_Split control.
setFeatureControlCreate a new OpenLayers.Control.ModifyFeature control and assign it to this control.
getLayerEventListeners{Object} The events to add/remove listeners for this control
onBeforeFeatureModifiedCalled on layer “beforefeaturemodified” event triggered.
delegateToEditFeatureUsed to delegate the editing to the updateControl.

Properties

dragControl

{<OpenLayers.Control.ModifyFeature>}

Functions

OpenLayers.Control.EditFeature_Split

Create a new EditFeature_Split control.

Parameters

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

setFeatureControl

setFeatureControl: function(layer)

Create a new OpenLayers.Control.ModifyFeature control and assign it to this control.

Parameters

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

getLayerEventListeners

getLayerEventListeners: function()

Returns

{Object} The events to add/remove listeners for this control

onBeforeFeatureModified

onBeforeFeatureModified: function(object)

Called on layer “beforefeaturemodified” event triggered.  Clone the feature for cancelling purpose.

Parameters

object{<OpenLayers.Event>} The event containing the feature

delegateToEditFeature

delegateToEditFeature_Update: function(object)

Used to delegate the editing to the updateControl.

Parameters

object{Object} The feature that had modifications
setFeatureControl: function(layer)
Create a new OpenLayers.Control.ModifyFeature control and assign it to this control.
getLayerEventListeners: function()
{Object} The events to add/remove listeners for this control
onBeforeFeatureModified: function(object)
Called on layer “beforefeaturemodified” event triggered.
delegateToEditFeature_Update: function(object)
Used to delegate the editing to the updateControl.
N.B.
Close