origo-map / origo

Origo
Other
48 stars 54 forks source link

Draw Control - Undo/Redo options #2018

Open MattiasSp opened 4 months ago

MattiasSp commented 4 months ago

Description When editing, it would be extremely useful with an undo/redo option. Then we could also do away with the confirmation dialog on deleting.

Example chrome-capture-2024-5-28-crop

tonnyandersson commented 4 months ago

I think that an undo/redo function should be able to handle all sorts of edits, not just delete operations. E.g. add/delete/move features/nodes.

I also think that both the editor and the draw control should have this option, but I've been told that the editor may offer some resistance to the implementation of such a feature...

MattiasSp commented 4 months ago

I agree, both about handling all modifications (maybe even styling) and about the editor using the same functionality.

The original issue concerned deleting specifically, since that's what causes the slightly annoying confirmation dialog, but it would be surprising in a bad way for a user to learn that it only works for one type of modification.