Don't crop coordinates when replacing directions url
This commit is contained in:
parent
432fa57e61
commit
9385e00cd9
1 changed files with 1 additions and 1 deletions
|
@ -145,7 +145,7 @@ OSM.Directions = function (map) {
|
||||||
|
|
||||||
OSM.router.replace("/directions?" + new URLSearchParams({
|
OSM.router.replace("/directions?" + new URLSearchParams({
|
||||||
engine: chosenEngine.id,
|
engine: chosenEngine.id,
|
||||||
route: points.map(p => OSM.cropLocation(p, map.getZoom()).join()).join(";")
|
route: points.map(p => `${p.lat},${p.lng}`).join(";")
|
||||||
}));
|
}));
|
||||||
|
|
||||||
// copy loading item to sidebar and display it. we copy it, rather than
|
// copy loading item to sidebar and display it. we copy it, rather than
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue