This commit is contained in:
Felix Delattre 2026-06-11 00:38:27 +02:00
parent 8683624557
commit 79ee099809
2 changed files with 7 additions and 4 deletions

View file

@ -758,7 +758,7 @@ function isLeap(y) { return (y%4===0 && y%100!==0) || y%400===0; }
// ── mini map ──
function initMiniMap(lat, lon) {
if (!miniMapInst) {
miniMapInst = L.map("miniMap", { zoomControl: false, attributionControl: false, scrollWheelZoom: false })
miniMapInst = L.map("miniMap", { zoomControl: true, attributionControl: false, scrollWheelZoom: false })
.addLayer(L.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"));
}
miniMapInst.setView([lat, lon], 11);