From: Anton Khorev Date: Wed, 12 Mar 2025 00:11:25 +0000 (+0300) Subject: Don't crop coordinates when replacing directions url X-Git-Tag: live~10^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/9385e00cd9650c4562a673b5bc048ba748756255?ds=inline;hp=--cc Don't crop coordinates when replacing directions url --- 9385e00cd9650c4562a673b5bc048ba748756255 diff --git a/app/assets/javascripts/index/directions.js b/app/assets/javascripts/index/directions.js index aee262e02..d2741d02b 100644 --- a/app/assets/javascripts/index/directions.js +++ b/app/assets/javascripts/index/directions.js @@ -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