bug with redrawing print route
This commit is contained in:
parent
4130144687
commit
b9a817ce26
@ -84,6 +84,7 @@ OSRM.drawMarkers = function( markers ) {
|
|||||||
|
|
||||||
// manage route
|
// manage route
|
||||||
OSRM.drawRoute = function( positions ) {
|
OSRM.drawRoute = function( positions ) {
|
||||||
|
if( OSRM.G.route == undefined )
|
||||||
OSRM.G.route = new L.DashedPolyline();
|
OSRM.G.route = new L.DashedPolyline();
|
||||||
OSRM.G.route.setLatLngs( positions );
|
OSRM.G.route.setLatLngs( positions );
|
||||||
OSRM.G.route.setStyle( {dashed:false,clickable:false,color:'#0033FF', weight:5} );
|
OSRM.G.route.setStyle( {dashed:false,clickable:false,color:'#0033FF', weight:5} );
|
||||||
|
Loading…
Reference in New Issue
Block a user