Merge pull request #497 from nrenner/68-sl-routing

Add straight line support to routing
This commit is contained in:
Norbert Renner 2022-05-12 16:26:00 +02:00 committed by GitHub
commit e5ea9173ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
29 changed files with 950 additions and 113 deletions

View file

@ -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') {