Support beelines on reverse

This commit is contained in:
Norbert Renner 2021-07-01 12:02:49 +02:00
parent f185d78dca
commit 9f4a4983c5

View file

@ -422,10 +422,12 @@ BR.Routing = L.Routing.extend({
},
reverse: function () {
var waypoints = this.getWaypoints();
const waypoints = this.getWaypoints();
const beelineFlags = this.getBeelineFlags();
waypoints.reverse();
beelineFlags.reverse();
this.clear();
this.setWaypoints(waypoints);
this.setWaypoints(waypoints, beelineFlags);
},
deleteLastPoint: function () {