]> git.openstreetmap.org Git - rails.git/commitdiff
Don't crop coordinates when replacing directions url
authorAnton Khorev <tony29@yandex.ru>
Wed, 12 Mar 2025 00:11:25 +0000 (03:11 +0300)
committerAnton Khorev <tony29@yandex.ru>
Wed, 12 Mar 2025 00:11:25 +0000 (03:11 +0300)
app/assets/javascripts/index/directions.js

index aee262e02518188f23b1adab4cc8bf60278af5e1..d2741d02b9489b5f856fd219e12a1e7b84887d0a 100644 (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