Improve route interactivity by using canvas
This commit is contained in:
parent
2cd233f70d
commit
47f3a06be6
3 changed files with 16 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue