Class: editfeatureselectorDirective directive:gmfEditfeatureselector

gmf.editfeatureselectorDirective

new editfeatureselectorDirective()

Directive that uses the GMF Theme service to collect the editable layers and create a drop-down list out of them. When the user selects one of the layer from the list, a gmf-editfeature directive is created and shown, which allows the user to edit that layer.

Example:

<gmf-editfeatureselector
    gmf-editfeatureselector-active="ctrl.editFeatureSelectorActive"
    gmf-editfeatureselector-map="::ctrl.map"
    gmf-editfeatureselector-tolerance="::ctrl.tolerance"
    gmf-editfeatureselector-vector="::ctrl.vectorLayer">
</gmf-editfeatureselector>
HTML attributes:
Name Type Description
gmf-editfeatureselector-active Whether the directive is active or not.
gmf-editfeatureselector-map The map.
gmf-editfeatureselector-tolerance The buffer in pixels to use when making queries to get the features.
gmf-editfeatureselector-vector The vector layer where the selected or created features are drawn.
Returns:
angular.Directive

The directive specs.