Add shortcut to delete last point
Press 'Z' to undo adding the last point.
This commit is contained in:
parent
a852acbfce
commit
48f8fe3524
3 changed files with 10 additions and 3 deletions
|
|
@ -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')
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue