Add undo to draw-features example

This commit is contained in:
Andreas Hocevar
2020-10-29 22:55:08 +01:00
parent 48f357d518
commit 4980e58db0
2 changed files with 8 additions and 3 deletions

View File

@@ -45,4 +45,8 @@ typeSelect.onchange = function () {
addInteraction();
};
document.getElementById('undo').addEventListener('click', function () {
draw.removeLastPoint();
});
addInteraction();