Merge pull request #497 from nrenner/68-sl-routing
Add straight line support to routing
This commit is contained in:
commit
e5ea9173ae
29 changed files with 950 additions and 113 deletions
|
|
@ -12,13 +12,15 @@ BR.Map = {
|
|||
|
||||
var maxZoom = 19;
|
||||
|
||||
if (BR.Browser.touch) {
|
||||
L.Draggable.prototype.options.clickTolerance = 10;
|
||||
}
|
||||
|
||||
map = new L.Map('map', {
|
||||
zoomControl: false, // add it manually so that we can translate it
|
||||
worldCopyJump: true,
|
||||
minZoom: 0,
|
||||
maxZoom: maxZoom,
|
||||
// fix for route drag on mobile (#285), until next Leaflet version released (> 1.6.0)
|
||||
tap: false,
|
||||
});
|
||||
|
||||
if (BR.Util.getResponsiveBreakpoint() >= '3md') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue