Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editor cancel adding new feature #1508

Closed
johnnyblasta opened this issue Mar 28, 2022 · 1 comment · Fixed by #1512
Closed

Editor cancel adding new feature #1508

johnnyblasta opened this issue Mar 28, 2022 · 1 comment · Fixed by #1512

Comments

@johnnyblasta
Copy link
Collaborator

Is your feature request related to a problem? Please describe.
It would be nice to be possible to cancel adding a new feature without leaving a empty feature which happens when using close button when using editor control in autosave/autoform mode.

Describe the solution you'd like
There should a save and cancel button in edit form. Clicking cancel should reove feature from map. Save button should save the attributes to the feature.
image

@steff-o
Copy link
Contributor

steff-o commented Mar 30, 2022

Just a heads up: if autosave is true, the feature has already been saved to the server when the attributes form is displayed and has to be deleted remotely as well. The other approach would be delaying the autosave if autoform also is true, but that will probably break related tables and attachments as those rely on a real database id to exist when form is displayed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants