Class: component_ directive:gmfEditfeature

gmf.editing.module:editFeatureComponent.component_

new component_()

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 digitize 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-closeaftersave="::ctrl.closeaftersave">
</gmf-editfeature>
HTML attributes:
Name Type Description
gmf-editfeature-dirty boolean 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 ngeo.layertree.Controller A reference to the editable Layertree controller, which contains a a reference to the node and WMS layer.
gmf-editfeature-map ol.Map The map.
gmf-editfeature-state string The state property shared with the `gmf-editfeatureselector` directive. For more info, see in that directive.
gmf-editfeatureselector-tolerance number | undefined The buffer in pixels to use when making queries to get the features.
gmf-editfeature-vector ol.layer.Vector The vector layer in which to draw the vector features.
gmf-editfeatureselector-closeaftersave boolean If true, immediately return to the main edit panel after save. Default is false.
Returns:
angular.Directive

The directive specs.