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.
Called on initialization of the controller.
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.
Check if there are unsaved modifications. If there aren't, then cancel. Used by the 'cancel' button in the template.
The promise attached to the confirm deferred object.
Called after an insert, update or delete request.
Ajax response.
Event.
The new feature.
The old feature.
The click coordinates.
Features.
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 bidings 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.
Event.
Called when the mapSelectActive property changes.
Whether the map select is active or not.
Event.
Handles the click on element in the feature menu In the call the parameters are in inverse order!
Features.
Event.
Event.
Handles mouse entering a menu item of the multiple feature menu
Features.
Event.
Handles mouse leaving a menu item of the multiple feature menu
Event.
Event.
Initialize interactions by setting them inactive and decorating them
The click coordinates.
Features.
Register interactions by adding them to the map
Save the currently selected feature modifications.
Attributes.
The feature to edit.
Called when the modal 'save' button is clicked. Do as if the user had clicked on the 'save' input button in the form, which allows the form to be validated.
Activate or deactivate this directive.
Whether to activate this directive or not.
Unregister interactions, i.e. set them inactive and remove them from the map
Generated using TypeDoc