';
route_desc += '';
- route_desc += ' ';
+ route_desc += ' ';
route_desc += " | ";
route_desc += '';
@@ -158,33 +158,33 @@ showNA: function( display_text ) {
// [TODO: language-safe implementation]
getDirectionIcon: function(name) {
var directions = {
- "Turn left":"turn-left.png",
- "Turn right":"turn-right.png",
- "U-Turn":"u-turn.png",
- "Head":"continue.png",
- "Continue":"continue.png",
- "Turn slight left":"slight-left.png",
- "Turn slight right":"slight-right.png",
- "Turn sharp left":"sharp-left.png",
- "Turn sharp right":"sharp-right.png",
- "Enter roundabout and leave at first exit":"round-about.png",
- "Enter roundabout and leave at second exit":"round-about.png",
- "Enter roundabout and leave at third exit":"round-about.png",
- "Enter roundabout and leave at fourth exit":"round-about.png",
- "Enter roundabout and leave at fifth exit":"round-about.png",
- "Enter roundabout and leave at sixth exit":"round-about.png",
- "Enter roundabout and leave at seventh exit":"round-about.png",
- "Enter roundabout and leave at eighth exit":"round-about.png",
- "Enter roundabout and leave at nineth exit":"round-about.png",
- "Enter roundabout and leave at tenth exit":"round-about.png",
- "Enter roundabout and leave at one of the too many exit":"round-about.png",
- "You have reached your destination":"target.png"
+ "Turn left":"turn-left",
+ "Turn right":"turn-right",
+ "U-Turn":"u-turn",
+ "Head":"continue",
+ "Continue":"continue",
+ "Turn slight left":"slight-left",
+ "Turn slight right":"slight-right",
+ "Turn sharp left":"sharp-left",
+ "Turn sharp right":"sharp-right",
+ "Enter roundabout and leave at first exit":"round-about",
+ "Enter roundabout and leave at second exit":"round-about",
+ "Enter roundabout and leave at third exit":"round-about",
+ "Enter roundabout and leave at fourth exit":"round-about",
+ "Enter roundabout and leave at fifth exit":"round-about",
+ "Enter roundabout and leave at sixth exit":"round-about",
+ "Enter roundabout and leave at seventh exit":"round-about",
+ "Enter roundabout and leave at eighth exit":"round-about",
+ "Enter roundabout and leave at nineth exit":"round-about",
+ "Enter roundabout and leave at tenth exit":"round-about",
+ "Enter roundabout and leave at one of the too many exit":"round-about",
+ "You have reached your destination":"target"
};
if( directions[name] )
return directions[name];
else
- return "default.png";
+ return "default";
}
};
\ No newline at end of file
diff --git a/WebContent/routing/OSRM.RoutingGUI.js b/WebContent/routing/OSRM.RoutingGUI.js
index e549b1a0a..b276ad1f3 100644
--- a/WebContent/routing/OSRM.RoutingGUI.js
+++ b/WebContent/routing/OSRM.RoutingGUI.js
@@ -48,17 +48,17 @@ reverseRouting: function() {
if(OSRM.G.markers.route.length == 1) {
if(OSRM.G.markers.route[0].label == OSRM.C.TARGET_LABEL) {
OSRM.G.markers.route[0].label = OSRM.C.SOURCE_LABEL;
- OSRM.G.markers.route[0].marker.setIcon( new L.Icon('images/marker-source.png') );
+ OSRM.G.markers.route[0].marker.setIcon( OSRM.G.icons['marker-source'] );
} else if(OSRM.G.markers.route[0].label == OSRM.C.SOURCE_LABEL) {
OSRM.G.markers.route[0].label = OSRM.C.TARGET_LABEL;
- OSRM.G.markers.route[0].marker.setIcon( new L.Icon('images/marker-target.png') );
+ OSRM.G.markers.route[0].marker.setIcon( OSRM.G.icons['marker-target'] );
}
} else if(OSRM.G.markers.route.length > 1){
OSRM.G.markers.route[0].label = OSRM.C.SOURCE_LABEL;
- OSRM.G.markers.route[0].marker.setIcon( new L.Icon('images/marker-source.png') );
+ OSRM.G.markers.route[0].marker.setIcon( OSRM.G.icons['marker-source'] );
OSRM.G.markers.route[OSRM.G.markers.route.length-1].label = OSRM.C.TARGET_LABEL;
- OSRM.G.markers.route[OSRM.G.markers.route.length-1].marker.setIcon( new L.Icon('images/marker-target.png') );
+ OSRM.G.markers.route[OSRM.G.markers.route.length-1].marker.setIcon( OSRM.G.icons['marker-target'] );
}
// recompute route
|