Only use Canvas for routing segments

Routing trailers are lagging behind and Canvas by default might have side effects (Plugins)
This commit is contained in:
Norbert Renner 2022-05-04 22:21:51 +02:00
parent 855dc81283
commit 72588f3fd9
5 changed files with 6 additions and 13 deletions

View file

@ -51,7 +51,6 @@ BR.Routing = L.Routing.extend({
this._segmentsCasing = new L.FeatureGroup().addTo(map);
this._loadingTrailerGroup = new L.FeatureGroup().addTo(map);
this._loadingTrailerRenderer = L.svg(); // CSS animation based on SVG path element
var container = L.Routing.prototype.onAdd.call(this, map);
@ -389,7 +388,6 @@ BR.Routing = L.Routing.extend({
opacity: this.options.styles.trailer.opacity,
dashArray: [10, 10],
className: 'loading-trailer',
renderer: this._loadingTrailerRenderer,
});
this._loadingTrailerGroup.addLayer(loadingTrailer);
}