From: Tom Hughes Date: Fri, 5 Aug 2016 17:35:27 +0000 (+0100) Subject: Correct icon mappings for non OSRM routers X-Git-Tag: live~3795 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/078dc1a5266f11e94150a36eec87bc680609ee68 Correct icon mappings for non OSRM routers --- diff --git a/app/assets/javascripts/index/directions/graphhopper.js b/app/assets/javascripts/index/directions/graphhopper.js index 9cf1dc1aa..88a9c15c1 100644 --- a/app/assets/javascripts/index/directions/graphhopper.js +++ b/app/assets/javascripts/index/directions/graphhopper.js @@ -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 }; diff --git a/app/assets/javascripts/index/directions/mapquest.js b/app/assets/javascripts/index/directions/mapquest.js index fbfed21cf..fcc47f103 100644 --- a/app/assets/javascripts/index/directions/mapquest.js +++ b/app/assets/javascripts/index/directions/mapquest.js @@ -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 diff --git a/app/assets/javascripts/index/directions/mapzen.js b/app/assets/javascripts/index/directions/mapzen.js index be4af26e4..263938860 100644 --- a/app/assets/javascripts/index/directions/mapzen.js +++ b/app/assets/javascripts/index/directions/mapzen.js @@ -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;