Use bolded version of destinations

This commit is contained in:
Tom Hughes 2018-02-25 21:29:54 +00:00
parent 7913592b5e
commit f9eccfe64f

View file

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