]> 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 d668d6bf7c4989554147284ad7e9dd9c4ef14f2f..fc8e8ff465c662e2b8deb46304f51e3f6702fd65 100644 (file)
@@ -327,7 +327,7 @@ $(document).ready(function () {
     e.preventDefault();
     if ($(".query_wrapper.routing").is(":visible")) {
       // Routing
     e.preventDefault();
     if ($(".query_wrapper.routing").is(":visible")) {
       // Routing
-      OSM.routing.requestRoute(true);
+      OSM.routing.requestRoute(true, false);
     } else {
       // Search
       $("header").addClass("closed");
     } else {
       // Search
       $("header").addClass("closed");
@@ -349,7 +349,7 @@ $(document).ready(function () {
   });
 
   OSM.routing = OSM.Routing(map,'OSM.routing',$('.query_wrapper.routing'));
   });
 
   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();
 
   $(".get_directions").on("click",function(e) {
     e.preventDefault();