removed dashed polyine

This commit is contained in:
DennisSchiefer
2012-08-13 14:46:26 +01:00
parent b792d44b4e
commit f004a65db1
9 changed files with 35 additions and 94 deletions
+2 -5
View File
@@ -22,10 +22,7 @@ or see http://www.gnu.org/licenses/agpl.txt.
// simple route class (wraps Leaflet Polyline)
OSRM.SimpleRoute = function (label, style) {
this.label = (label ? label : "route");
this.route = new L.DashedPolyline();
this.route.setLatLngs( [] );
if(style) this.route.setStyle( style );
this.route = new L.Polyline( [], style );
this.shown = false;
};
OSRM.extend( OSRM.SimpleRoute,{
@@ -82,7 +79,7 @@ isShown: function() {
return this.shown;
},
addRoute: function(positions) {
var line = new L.DashedPolyline( positions );
var line = new L.Polyline( positions );
line.on('click', function(e) { OSRM.G.route.fire('click',e); });
this.route.addLayer( line );
},