Class: editfeatureDirective directive:gmfEditfeature

gmf.editfeatureDirective

new editfeatureDirective()

Directive used to insert, modify and delete features from a single layer. It allows you to modify the geometry of the feature in addition to its attributes.

In order to modify or delete a feature, you must click on the map at the location of the feature to select it first.

In order to create a new feature, you use the "Draw" button and digitalize the feature on the map.

Example:

<gmf-editfeature
    gmf-editfeature-dirty="ctrl.dirty"
    gmf-editfeature-editabletreectrl="::ctrl.treeCtrl"
    gmf-editfeature-map="::ctrl.map"
    gmf-editfeature-state="efsCtrl.state"
    gmf-editfeature-tolerance="::ctrl.tolerance"
    gmf-editfeature-vector="::ctrl.vectorLayer">
</gmf-editfeature>
HTML attributes:
Name Type Description
gmf-editfeature-dirty Flag that is toggled as soon as the feature changes, i.e. if any of its properties change, which includes the geometry.
gmf-editfeature-editabletreectrl A reference to the editable Layertree controller, which contains a a reference to the node and WMS layer.
gmf-editfeature-map The map.
gmf-editfeature-state The state property shared with the `gmf-editfeatureselector` directive. For more info, see in that directive.
gmf-editfeatureselector-tolerance The buffer in pixels to use when making queries to get the features.
gmf-editfeature-vector The vector layer in which to draw the vector features.
Returns:
angular.Directive

The directive specs.