Improve route interactivity by using canvas

This commit is contained in:
Norbert Renner 2021-05-20 13:11:18 +02:00
parent 2cd233f70d
commit 47f3a06be6
3 changed files with 16 additions and 1 deletions

View file

@ -12,7 +12,12 @@ BR.Map = {
var maxZoom = 19;
if (BR.Browser.touch) {
L.Draggable.prototype.options.clickTolerance = 10;
}
map = new L.Map('map', {
renderer: L.canvas({ tolerance: BR.Browser.touch ? 10 : 5 }),
zoomControl: false, // add it manually so that we can translate it
worldCopyJump: true,
minZoom: 0,