mapedit icon indicating copy to clipboard operation
mapedit copied to clipboard

[feature request]: undo and redo

Open yeedle opened this issue 8 years ago • 1 comments

I might be missing something obvious, but if mapedit can support playback, is should be possible to have undo and redo on individual edits. For example, if I press ctrl+z (or click some dedicated undo button) the latest point added to a polygon is removed, and redo adds it back. Currently, as far as I can tell, the cancel button undos all the changes to a feature as a unit and not individual changes.

yeedle avatar Jul 28 '17 22:07 yeedle

Great idea and further confirms that mapedit could benefit from a last event state added to the state list. The difficult part will be making it work with Leaflet.draw which doesn't expose its API. In terms of undo last point, the only thing that is available is "Delete Last Point" when drawing polygons.

timelyportfolio avatar Jul 31 '17 00:07 timelyportfolio