X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/15f0367e7fb8bf78059759414d7ec0d3dcceb42a..73eb8a5336ea14fa1ccc6de9442125b6475bf6bb:/app/assets/javascripts/routing_engines/graphhopper.js diff --git a/app/assets/javascripts/routing_engines/graphhopper.js b/app/assets/javascripts/routing_engines/graphhopper.js index 5e14ea0df..6d83e26e2 100644 --- a/app/assets/javascripts/routing_engines/graphhopper.js +++ b/app/assets/javascripts/routing_engines/graphhopper.js @@ -59,5 +59,5 @@ GraphHopperEngine.prototype.createConfig = function() { }; }; -OSM.RoutingEngines.list.push(new GraphHopperEngine("Bicycle", "vehicle=bike").createConfig()); -OSM.RoutingEngines.list.push(new GraphHopperEngine("Foot", "vehicle=foot").createConfig()); +OSM.RoutingEngines.add(false, new GraphHopperEngine("Bicycle", "vehicle=bike").createConfig()); +OSM.RoutingEngines.add(false, new GraphHopperEngine("Foot", "vehicle=foot").createConfig());