Support beelines on reverse
This commit is contained in:
parent
f185d78dca
commit
9f4a4983c5
1 changed files with 4 additions and 2 deletions
|
|
@ -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 () {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue