X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/3d3b2b47964ec91ef1ab1946b7258a06665caced..87363858cb4e9cff9b5c29ac6e95425c5c3fab8b:/app/assets/javascripts/index/directions/fossgis_osrm.js diff --git a/app/assets/javascripts/index/directions/fossgis_osrm.js b/app/assets/javascripts/index/directions/fossgis_osrm.js index cd1731247..2332049be 100644 --- a/app/assets/javascripts/index/directions/fossgis_osrm.js +++ b/app/assets/javascripts/index/directions/fossgis_osrm.js @@ -2,7 +2,7 @@ // Doesn't yet support hints (function () { - function FOSSGISOSRMEngine(id, vehicleType) { + function FOSSGISOSRMEngine(modeId, vehicleType) { let cachedHints = []; function _processDirections(route) { @@ -150,7 +150,8 @@ } return { - id: id, + mode: modeId, + provider: "fossgis_osrm", creditline: "OSRM (FOSSGIS)", draggable: true, @@ -181,7 +182,7 @@ }; } - OSM.Directions.addEngine(new FOSSGISOSRMEngine("fossgis_osrm_car", "car"), true); - OSM.Directions.addEngine(new FOSSGISOSRMEngine("fossgis_osrm_bike", "bike"), true); - OSM.Directions.addEngine(new FOSSGISOSRMEngine("fossgis_osrm_foot", "foot"), true); + OSM.Directions.addEngine(new FOSSGISOSRMEngine("car", "car"), true); + OSM.Directions.addEngine(new FOSSGISOSRMEngine("bicycle", "bike"), true); + OSM.Directions.addEngine(new FOSSGISOSRMEngine("foot", "foot"), true); }());