Improve error-handling

This commit is contained in:
Richard Fairhurst 2014-03-08 12:07:54 +00:00
parent 902f1b0887
commit 5b6558c0f2
6 changed files with 22 additions and 7 deletions

View file

@ -28,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);