added clarifying comment to JSONP call
This commit is contained in:
parent
1ec7c6ab50
commit
e9736173b0
@ -184,9 +184,10 @@ show: function(response) {
|
|||||||
print_window.OSRM.prefetchIcons( OSRM.G.images );
|
print_window.OSRM.prefetchIcons( OSRM.G.images );
|
||||||
print_window.OSRM.drawMarkers( OSRM.G.markers.route );
|
print_window.OSRM.drawMarkers( OSRM.G.markers.route );
|
||||||
|
|
||||||
// draw route & query for better geometry
|
// draw route & query for better geometry
|
||||||
print_window.OSRM.drawRoute( positions );
|
print_window.OSRM.drawRoute( positions );
|
||||||
OSRM.JSONP.call(OSRM.Routing._buildCall()+'&z='+zoom+'&instructions=false', OSRM.Printing.drawRoute, OSRM.Printing.timeoutRoute, OSRM.DEFAULTS.JSONP_TIMEOUT, 'print');
|
OSRM.JSONP.call(OSRM.Routing._buildCall()+'&z='+zoom+'&instructions=false', OSRM.Printing.drawRoute, OSRM.Printing.timeoutRoute, OSRM.DEFAULTS.JSONP_TIMEOUT, 'print');
|
||||||
|
// NOTE: simply appended correct zoom level as second zoom parameter to JSONP call -> OSRM API only considers the last one!
|
||||||
},
|
},
|
||||||
timeoutRoute: function() {},
|
timeoutRoute: function() {},
|
||||||
drawRoute: function(response) {
|
drawRoute: function(response) {
|
||||||
|
Loading…
Reference in New Issue
Block a user