OpenLayers.Control.EditFeature_Copy

Inherits From

Summary
OpenLayers.Control.EditFeature_Copy
Properties
dragControl{<OpenLayers.Control.ModifyFeature>}
offsetX{Integer} Offset in pixel for the X axis.
offsetY{Integer} Offset in pixel for the Y axis.
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
delegateToEditFeatureUsed to delegate the editing to the updateControl.
cloneFeatureFeature handler callback method.
onModificationEndCall parent onModificationEnd and re-enable feature handler.
toggleFeatureHandler

Properties

dragControl

{<OpenLayers.Control.ModifyFeature>}

offsetX

{Integer} Offset in pixel for the X axis.  Negative value means “to the left”

offsetY

{Integer} Offset in pixel for the Y axis.  Negative value means “to the bottom”

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

delegateToEditFeature

delegateToEditFeature_Update: function(object)

Used to delegate the editing to the updateControl.

Parameters

{Object} The feature that had modifications

cloneFeature

cloneFeature: function(feature)

Feature handler callback method.  Used to clone the clicked feature, then select it for dragging purpose.  If an offset is set, the clone will be moved to its location.

Parameters

feature{OpenLayers.Feature.Vector} The feature clicked

onModificationEnd

onModificationEnd: function(object)

Call parent onModificationEnd and re-enable feature handler.

toggleFeatureHandler

toggleFeatureHandler: function(toggle)

Parameters

toggle{boolean} true : enables feature handler and deactivate drag control, false is the opposite.
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
delegateToEditFeature_Update: function(object)
Used to delegate the editing to the updateControl.
cloneFeature: function(feature)
Feature handler callback method.
onModificationEnd: function(object)
Call parent onModificationEnd and re-enable feature handler.
toggleFeatureHandler: function(toggle)
N.B.
Close