]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index/directions/graphhopper.js
Derive popup location from lineseg
[rails.git] / app / assets / javascripts / index / directions / graphhopper.js
index 325dcabcd621e42ed26bd57e1af2197513870d28..acbd776a0c86783be40a0ed553136f73a47415e9 100644 (file)
         const lineseg = line
           .slice(instr.interval[0], instr.interval[1] + 1);
         return [
-          lineseg[0],
           GH_INSTR_MAP[instr.sign],
           instr.text,
           instr.distance,
           lineseg
         ];
       });
-      steps.at(-1)[1] = "destination";
+      steps.at(-1)[0] = "destination";
 
       return {
         line: line,