]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index.js
Add spinner while awaiting route
[rails.git] / app / assets / javascripts / index.js
index fc772a1a8692cb93fbed2ce45cd988e98d45db09..fc8e8ff465c662e2b8deb46304f51e3f6702fd65 100644 (file)
@@ -327,7 +327,7 @@ $(document).ready(function () {
     e.preventDefault();
     if ($(".query_wrapper.routing").is(":visible")) {
       // Routing
-      OSM.routing.requestRoute();
+      OSM.routing.requestRoute(true, false);
     } else {
       // Search
       $("header").addClass("closed");
@@ -349,7 +349,7 @@ $(document).ready(function () {
   });
 
   OSM.routing = OSM.Routing(map,'OSM.routing',$('.query_wrapper.routing'));
-  OSM.routing.chooseEngine('Car (OSRM)');
+  OSM.routing.chooseEngine('javascripts.directions.engines.osrm_car');
 
   $(".get_directions").on("click",function(e) {
     e.preventDefault();