]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/routing_engines/cloudmade_foot.js
Apparently 'final' is a reserved word in JS...
[rails.git] / app / assets / javascripts / routing_engines / cloudmade_foot.js
index a2b7bbc9a80d2868cedf65bbee69e2bd3d2c18fe..5193c647245067b5a51dca4f62bf476b7d6bcc57 100644 (file)
@@ -5,7 +5,7 @@
 
 OSM.RoutingEngines.list.push({
        name: 'Foot (CloudMade)',
-       draggable: true,
+       draggable: false,
        CM_SPRITE_MAP: {
                "C": 1,
                "TL": 7,
@@ -16,7 +16,7 @@ OSM.RoutingEngines.list.push({
                "TSHR": 4,
                "TU": 5
        }, // was half expecting to see TLDR in there
-       getRoute: function(final,points) {
+       getRoute: function(isFinal,points) {
                var url="http://routes.cloudmade.com/8ee2a50541944fb9bcedded5165f09d9/api/0.3/";
                var p=[];
                for (var i=0; i<points.length; i++) {