]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index.js
Parse CloudMade directions
[rails.git] / app / assets / javascripts / index.js
index a3531eb3060c710eeeb9b36fc40c2dc3cc7e1901..7369c0fb4c928fb3186570fea2df931a7fc03ccf 100644 (file)
@@ -15,6 +15,7 @@
 //= require index/new_note
 //= require router
 //= require routing
+//= require_tree ./routing_engines
 
 (function() {
   var loaderTimeout;
@@ -348,6 +349,7 @@ $(document).ready(function () {
   });
 
   OSM.routing = OSM.Routing(map,'OSM.routing',$('.query_wrapper.routing'));
+  OSM.routing.chooseEngine('Car (OSRM)');
 
   $(".get_directions").on("click",function(e) {
        e.preventDefault();