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:
parent
855dc81283
commit
72588f3fd9
5 changed files with 6 additions and 13 deletions
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue