autorise zoom 19

This commit is contained in:
Johan Le Baut 2023-01-11 18:14:48 +01:00
parent 296ed8da8a
commit bfc0a30c84
1 changed files with 3 additions and 1 deletions

View File

@ -111,7 +111,9 @@ function initMap(btn) {
} }
L.tileLayer('https://{s}.tile.openstreetmap.fr/osmfr/{z}/{x}/{y}.png', { L.tileLayer('https://{s}.tile.openstreetmap.fr/osmfr/{z}/{x}/{y}.png', {
attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors' attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',
maxNativeZoom: 19,
maxZoom: 19
}).addTo(map); }).addTo(map);
map.on("zoom move", () => { map.on("zoom move", () => {