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

@ -70,6 +70,11 @@ BR.tracksLoader = function (map, layersControl, routing, pois) {
}
},
});
// make sure tracks are always shown below route by adding a custom pane below `leaflet-overlay-pane`
map.createPane('tracks');
map.getPane('tracks').style.zIndex = 350;
var tracksLoaderControl = new TracksLoader();
tracksLoaderControl.addTo(map);