]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/routing_engines/osrm.js
Merge pull request #19 from apmon/jsroute2
[rails.git] / app / assets / javascripts / routing_engines / osrm.js
index 5808fb7ee8dc633e096fd320387a8ef984b5eb68..b40d5b3069325ad757dbc853a729f84a6bcaea14 100644 (file)
@@ -13,7 +13,7 @@ OSRMEngine.prototype.createConfig = function() {
     var that = this;
     return {
         name: "javascripts.directions.engines.osrm_"+this.vehicleName.toLowerCase(),
-        creditline: 'Directions courtesy of <a href="http://project-osrm.org/" target="_blank">OSRM</a>',
+            creditline: '<a href="http://project-osrm.org/" target="_blank">OSRM</a>',
         draggable: true,
         _hints: {},
         getRoute: function(isFinal,points) {
@@ -57,4 +57,4 @@ OSRMEngine.prototype.createConfig = function() {
     };
 };
 
-OSM.RoutingEngines.list.push(new OSRMEngine("Car", "http://router.project-osrm.org/viaroute").createConfig());
+OSM.RoutingEngines.add(false, new OSRMEngine("Car", "http://router.project-osrm.org/viaroute").createConfig());