Improve error-handling
This commit is contained in:
parent
902f1b0887
commit
5b6558c0f2
6 changed files with 22 additions and 7 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue