N.B. Supports only ONE vector layer
OpenLayers. | N.B. |
Properties | |
VECTOR_LAYER_TYPES | {Array(String)} Supported Vector layer types for the edition control. |
WMS_LAYER_TYPES | {Array(String)} Supported WMS layer types. |
layer | {OpenLayers.Layer.Vector} Vector layer that has this.resource |
handlers | {Array(<OpenLayers.Handler>)} |
wmslayer | {OpenLayers.Layer.WMS} WMS layer that has this.resource |
Functions | |
OpenLayers. | Create a new EditFeature.Update control. |
setFeatureControl | Called as soon as the vector layer related to the resources of this control is found. |
setSnappingControl | Called as soon as the vector layer related to the resources of this control is found. |
getSelectControl | Returns the SelectFeature control used by this control depending on this.snappingcontrol. |
getSelectedFeatures | Returns current selected features. |
commit | Commit created/updated/deleted features using the layer’s protocol. |
onCommit | Called after protocol commit. |
onModificationStart | Called before feature modification. |
onModification | Called on feature modification. |
onModificationEnd | Called after feature modification. |
cancel | Cancel modification on a feature (if it has any). |
toggleExtComponent | Called on map “moveend” events. |
handleKeypress | Called by the keyboard handler when a key is pressed. |
setMap | Set the map property for the control and all handlers. |
setFeatureControl: function( layer )
Called as soon as the vector layer related to the resources of this control is found. It creates the according OpenLayers control depending on what is the type of editfeature control currently used. The code of this function is redefined in the child control, i.e. : /create/Create.js /update/Update.js /delete/Delete.js
layer | {<OpenLayers.Layer.Vector>} The vector layer to assign the control to be created. |
options | {Object} Options for the control to be created. |
setSnappingControl: function( layer )
Called as soon as the vector layer related to the resources of this control is found. The code of this function is redefined in the child control, i.e. : /create/Create.js /update/Update.js /delete/Delete.js
layer | {<OpenLayers.Layer.Vector>} The vector layer to assign the control to be created. |
options | {Object} Options for the control to be created. |
onModificationStart: function( object )
Called before feature modification. Show the FeaturePanel if it’s set. If the feature is about to be modified (not a new feature), clone it to keep an original copy if modification are canceled.
object | {<OpenLayers.Event>} Used to get the feature about to be modified |
onModificationEnd: function( object )
Called after feature modification. If using a FeaturePanel : Validate that it’s currently commiting. If not, depending of the feature state, reset or destroy the feature. If not using a FeaturePanel : Simply commit the modifications made to the feature.
object | {<OpenLayers.Event>} Used to get the modified feature |
Called as soon as the vector layer related to the resources of this control is found.
setFeatureControl: function( layer )
Called as soon as the vector layer related to the resources of this control is found.
setSnappingControl: function( layer )
Returns the SelectFeature control used by this control depending on this.snappingcontrol.
getSelectControl: function()
Returns current selected features.
getSelectedFeatures: function()
Commit created/updated/deleted features using the layer’s protocol.
commit: function ( features )
Called after protocol commit.
onCommit: function( response )
Called before feature modification.
onModificationStart: function( object )
Called on feature modification.
onModification: function( object )
Called after feature modification.
onModificationEnd: function( object )
Cancel modification on a feature (if it has any).
cancel: function( feature )
Called on map “moveend” events.
toggleExtComponent: function()
Called by the keyboard handler when a key is pressed.
handleKeypress: function( evt )
Set the map property for the control and all handlers.
setMap: function( map )