Correct icon mappings for non OSRM routers
authorTom Hughes <tom@compton.nu>
Fri, 5 Aug 2016 17:35:27 +0000 (18:35 +0100)
committerTom Hughes <tom@compton.nu>
Fri, 5 Aug 2016 17:59:21 +0000 (18:59 +0100)
app/assets/javascripts/index/directions/graphhopper.js
app/assets/javascripts/index/directions/mapquest.js
app/assets/javascripts/index/directions/mapzen.js

index 9cf1dc1aacf58ba703d281e78401e35b651680d9..88a9c15c1215b00ae19ba6a7373eb88dff1efd7c 100644 (file)
@@ -7,8 +7,8 @@ function GraphHopperEngine(id, vehicleType) {
     1: 1, // slight right
     2: 2, // right
     3: 3, // sharp right
-    4: 8, // finish reached
-    5: 8, // via reached
+    4: 14, // finish reached
+    5: 14, // via reached
     6: 10 // roundabout
   };
 
index fbfed21cf0a92f571e6a191a2715c869c5fbb594..fcc47f103544ed3e99943eb5df17c573b655a826 100644 (file)
@@ -10,15 +10,15 @@ function MapQuestEngine(id, routeType) {
     2: 2, // right
     3: 3, // sharp right
     4: 4, // reverse
-    5: 5, // sharp left
+    5: 7, // sharp left
     6: 6, // left
-    7: 7, // slight left
-    8: 3, // right U-turn (mapped to shard-right symbol)
-    9: 8, // left U-turn
+    7: 5, // slight left
+    8: 4, // right U-turn
+    9: 4, // left U-turn
     10: 21, // right merge
     11: 20, // left merge
-    12: 2, // right on-ramp
-    13: 6, // left on-ramp
+    12: 21, // right on-ramp
+    13: 20, // left on-ramp
     14: 24, // right off-ramp
     15: 25, // left off-ramp
     16: 18, // right fork
index be4af26e4b30b578438b8bccab2c75754b644e8a..263938860a04ec004403be4610da44a890e1f5b3 100644 (file)
@@ -18,13 +18,13 @@ function MapzenEngine(id, costing) {
     6,  // kLeft = 15;
     5,  // kSlightLeft = 16;
     0,  // kRampStraight = 17;
-    2 // kRampRight = 18;
-    6,  // kRampLeft = 19;
+    24, // kRampRight = 18;
+    25, // kRampLeft = 19;
     24, // kExitRight = 20;
     25, // kExitLeft = 21;
     0,  // kStayStraight = 22;
-    2,  // kStayRight = 23;
-    6,  // kStayLeft = 24;
+    1,  // kStayRight = 23;
+    5,  // kStayLeft = 24;
     20, // kMerge = 25;
     10, // kRoundaboutEnter = 26;
     11, // kRoundaboutExit = 27;