Don't crop coordinates when replacing directions url

This commit is contained in:
Anton Khorev 2025-03-12 03:11:25 +03:00
parent 432fa57e61
commit 9385e00cd9

View file

@ -145,7 +145,7 @@ OSM.Directions = function (map) {
OSM.router.replace("/directions?" + new URLSearchParams({
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