Apparently 'final' is a reserved word in JS...
This commit is contained in:
parent
7c13b43f31
commit
149182f620
5 changed files with 8 additions and 8 deletions
|
@ -30,7 +30,7 @@ OSM.RoutingEngines.list.push({
|
|||
17: 8, // left fork
|
||||
18: 1 // straight fork
|
||||
},
|
||||
getRoute: function(final,points) {
|
||||
getRoute: function(isFinal,points) {
|
||||
var url="http://open.mapquestapi.com/directions/v2/route?key=Fmjtd%7Cluur290anu%2Crl%3Do5-908a0y";
|
||||
var from=points[0]; var to=points[points.length-1];
|
||||
url+="&from="+from.join(',');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue