changed jsonp call, so that position of the callback command has

to be given as "%jsonp" in the string
This commit is contained in:
DennisSchiefer
2012-04-21 08:13:42 +01:00
parent 7ad253732a
commit 1da10942d5
3 changed files with 8 additions and 9 deletions
+1 -1
View File
@@ -132,7 +132,7 @@ draggingTimeout: function() {
_buildCall: function() {
var source = OSRM.DEFAULTS.HOST_ROUTING_URL;
source += '?z=' + OSRM.G.map.getZoom() + '&output=json&geomformat=cmp';
source += '?z=' + OSRM.G.map.getZoom() + '&output=json&jsonp=%jsonp&geomformat=cmp';
if(OSRM.G.markers.checksum)
source += '&checksum=' + OSRM.G.markers.checksum;
for(var i=0,size=OSRM.G.markers.route.length; i<size; i++) {