Add shortcut to delete last point

Press 'Z' to undo adding the last point.
This commit is contained in:
Henrik Fehlauer 2020-06-05 18:00:00 +00:00
parent a852acbfce
commit 48f8fe3524
3 changed files with 10 additions and 3 deletions

View file

@ -84,7 +84,7 @@
var deletePointButton = L.easyButton(
'<span><i class="fa fa-caret-left"></i><i class="fa fa-map-marker" style="margin-left: 1px; color: gray;"></i></span>',
function() {
routing.removeWaypoint(routing.getLast(), function(err, data) {});
routing.deleteLastPoint();
},
i18next.t('map.delete-last-point')
);