]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/routing_engines/cloudmade_foot.js
Use generic GraphHopper engine
[rails.git] / app / assets / javascripts / routing_engines / cloudmade_foot.js
index 5c1ba0e9716ab1088042640fab5f7470230a7a90..13368d0a2d09475c53693634f95a9c5836a80b5e 100644 (file)
@@ -5,6 +5,7 @@
 
 OSM.RoutingEngines.list.push({
        name: "javascripts.directions.engines.cloudmade_foot",
+       creditline: 'Directions courtesy of <a href="http://cloudmade.com/products/routing" target="_blank">Cloudmade</a>',
        draggable: false,
        CM_SPRITE_MAP: {
                "C": 1,
@@ -27,6 +28,7 @@ OSM.RoutingEngines.list.push({
                url+="/foot.js";
         url+="?lang=" + I18n.currentLocale();
                this.requestJSONP(url+"&callback=");
+               return true;
        },
        gotRoute: function(router,data) {
                router.setPolyline(data.route_geometry);