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

@ -63,16 +63,6 @@ BR.Heightgraph = function (map, layersControl, routing, pois) {
},
},
onAdd(map) {
// As we're using canvas, initialize an `svg` root that is needed for map marker,
// see `Heightgraph._showMapMarker`
if (!document.querySelector('.leaflet-overlay-pane svg')) {
L.svg().addTo(map);
}
return L.Control.Heightgraph.prototype.onAdd.call(this, map);
},
addBelow: function (map) {
// waiting for https://github.com/MrMufflon/Leaflet.Elevation/pull/66
// this.width($('#map').outerWidth());