A deferred object resolved after the confirm modal "continue w/o saving" or "save" buttons are clicked.
Flag that is toggled as soon as the feature changes, i.e. if any of its properties change, which includes the geometry.
Flag that is toggled while a request is pending, either one to get features when a map is clicked or when saving
The state property shared with the gmf-editfeatureselector
directive.
For more info, see in that directive.
Flag that controls the visibility of the modal that manages unsaved modifications.
Check if there's a feature selected and if it contains modifications (a.k.a. is dirty), then the confirmation modal is shown.
The promise attached to the confirm deferred object.
Optional
scopeApply: booleanWhether to force scope to refresh or not. when the confirm modal is not dismissed.
Called when the map is clicked.
(1) If a vector feature was clicked, don't do anything (i.e. allow the interactions to do their bindings without selecting a new feature).
(2) Otherwise, if there is a feature being edited and has unsaved modifications, show the confirmation modal asking the user what to do about it.
(3) If there's no feature selected or we have one without unsaved modifications or with modifications that were canceled, launch a query to fetch the features at the clicked location.
Event.
Generated using TypeDoc
Export