]> git.openstreetmap.org Git - rails.git/commitdiff
Use bolded version of destinations
authorTom Hughes <tom@compton.nu>
Sun, 25 Feb 2018 21:29:54 +0000 (21:29 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 25 Feb 2018 21:29:54 +0000 (21:29 +0000)
app/assets/javascripts/index/directions/osrm.js

index f2276c11f3c7c6e604304efc6829a971627e0a7e..84f085c5a6c942cc16f0cc8fcb6344989d7ff2db 100644 (file)
@@ -119,7 +119,7 @@ function OSRMEngine() {
         } else if (step.maneuver.type.match(/on ramp|off ramp/)) {
           var params = {};
           if (step.exits && step.maneuver.type.match(/off ramp/)) params.exit = step.exits;
-          if (step.destinations) params.directions = step.destinations;
+          if (step.destinations) params.directions = destinations;
           if (namedRoad) params.directions = name;
           if (Object.keys(params).length > 0) {
             template = template + "_with_" + Object.keys(params).join("_");