set dashArray for non-dashed lines

This commit is contained in:
DennisSchiefer
2012-08-13 15:03:48 +01:00
parent d9b0ab3d2e
commit 5901b25e69
3 changed files with 19 additions and 19 deletions
+1 -1
View File
@@ -94,7 +94,7 @@ OSRM.drawRoute = function( positions ) {
if( OSRM.G.route == undefined )
OSRM.G.route = new L.Polyline();
OSRM.G.route.setLatLngs( positions );
OSRM.G.route.setStyle( {clickable:false,color:'#0033FF', weight:5} );
OSRM.G.route.setStyle( {clickable:false,color:'#0033FF', weight:5, dashArray:""} );
OSRM.G.map.addLayer( OSRM.G.route );
};
OSRM.updateRoute = function( positions ) {