OpenLayers.Control.EditFeature_Create

Inherits From

Summary
OpenLayers.Control.EditFeature_Create
Constants
i18n_checkfid_exist_messagebox_title{String} Title of the checkfid message box
i18n_checkfid_exist_messagebox_message{String} Message of the checkfid message box
Properties
drawControl{<OpenLayers.Control.DrawFeature>}
checkfidif is not null, create check id feature not exist before add are authorized
Functions
OpenLayers.Control.EditFeature_CreateCreate a new EditFeature_Create control.
setFeatureControlCreate a ModifyFeature and assign it to this control.
setDrawControlCreate a DrawFeature control for a particular geometry type.
onFeatureAddedCalled when a feature is added to the vector layer.
resumeDrawCalled when a modification (edition) is finished.
doCheckfidCheck if feature alreay exist before its creation.
doCheckfidCallbackAjax request result callback function that check the result and deactivate the create control is feature exist.

Constants

i18n_checkfid_exist_messagebox_title

{String} Title of the checkfid message box

i18n_checkfid_exist_messagebox_message

{String} Message of the checkfid message box

Properties

drawControl

{<OpenLayers.Control.DrawFeature>}

checkfid

if is not null, create check id feature not exist before add are authorized

Functions

OpenLayers.Control.EditFeature_Create

Create a new EditFeature_Create control.

Parameters

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

setFeatureControl

setFeatureControl: function(layer)

Create a ModifyFeature and assign it to this control.  Event registration is done in this.activate function.

Parameters

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

setDrawControl

setDrawControl: function(layer)

Create a DrawFeature control for a particular geometry type.  Also registers a ‘featureadded’ event to deal with features created by the DrawFeature control.

Parameters

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

onFeatureAdded

onFeatureAdded: function(event)

Called when a feature is added to the vector layer.  Sets the state of the newly created feature to INSERT, deactivate the DrawFeature control and activate the ModifyFeature control for attributes/geometry edition

Parameters

event{<OpenLayers.Event>}

resumeDraw

resumeDraw: function(event)

Called when a modification (edition) is finished.  Deactivates the ModifyFeature control and reactivate the DrawFeature.

Parameters

event{<OpenLayers.Event>}

doCheckfid

doCheckfid: function(showMessage)

Check if feature alreay exist before its creation.  To permit the possibility to add only one feature with url passed fid

Returns

(void)

doCheckfidCallback

doCheckfidCallback : function(response)

Ajax request result callback function that check the result and deactivate the create control is feature exist.

Returns

(void)

setFeatureControl: function(layer)
Create a ModifyFeature and assign it to this control.
setDrawControl: function(layer)
Create a DrawFeature control for a particular geometry type.
onFeatureAdded: function(event)
Called when a feature is added to the vector layer.
resumeDraw: function(event)
Called when a modification (edition) is finished.
doCheckfid: function(showMessage)
Check if feature alreay exist before its creation.
doCheckfidCallback : function(response)
Ajax request result callback function that check the result and deactivate the create control is feature exist.
N.B.
Close