Correctly swap from and to values when reversing directions
Closes #1752 Fixes #1748
This commit is contained in:
parent
161ce947c3
commit
93d94bb1f9
1 changed files with 1 additions and 1 deletions
|
@ -123,7 +123,7 @@ OSM.Directions = function (map) {
|
|||
OSM.router.route("/directions?" + querystring.stringify({
|
||||
from: $("#route_to").val(),
|
||||
to: $("#route_from").val(),
|
||||
route: from.lat + "," + from.lng + ";" + to.lat + "," + to.lng
|
||||
route: to.lat + "," + to.lng + ";" + from.lat + "," + from.lng
|
||||
}));
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue