removed dashed polyine
This commit is contained in:
@@ -38,7 +38,6 @@ or see http://www.gnu.org/licenses/agpl.txt.
|
||||
<!-- scripts -->
|
||||
<script src="../leaflet/leaflet-src.js" type="text/javascript"></script>
|
||||
<script src="printing.js" type="text/javascript"></script>
|
||||
<script src="../base/leaflet/L.DashedPolyline.js" type="text/javascript"></script>
|
||||
<script src="../base/leaflet/L.MouseMarker.js" type="text/javascript"></script>
|
||||
<script src="../base/leaflet/L.SwitchableIcon.js" type="text/javascript"></script>
|
||||
<script src="../base/leaflet/L.BingLayer.js" type="text/javascript"></script>
|
||||
|
||||
@@ -92,9 +92,9 @@ OSRM.drawMarkers = function( markers ) {
|
||||
// manage route
|
||||
OSRM.drawRoute = function( positions ) {
|
||||
if( OSRM.G.route == undefined )
|
||||
OSRM.G.route = new L.DashedPolyline();
|
||||
OSRM.G.route = new L.Polyline();
|
||||
OSRM.G.route.setLatLngs( positions );
|
||||
OSRM.G.route.setStyle( {dashed:false,clickable:false,color:'#0033FF', weight:5} );
|
||||
OSRM.G.route.setStyle( {clickable:false,color:'#0033FF', weight:5} );
|
||||
OSRM.G.map.addLayer( OSRM.G.route );
|
||||
};
|
||||
OSRM.updateRoute = function( positions ) {
|
||||
|
||||
Reference in New Issue
Block a user