From: Radek Czajka Date: Tue, 13 Oct 2026 10:03:21 +0000 (+0200) Subject: Opepager: allow moving map X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/215578b869ea0f64347f3565793238039a9467e6 Opepager: allow moving map --- diff --git a/src/references/templates/references/onepager.html b/src/references/templates/references/onepager.html index e4fd93c9a..e2581d41d 100644 --- a/src/references/templates/references/onepager.html +++ b/src/references/templates/references/onepager.html @@ -100,6 +100,13 @@ gap:7mm; margin-bottom:6mm; } + + + @media print { + .leaflet-control { + display: none; + } + } /* gdy nie ma mapy: zdjęcia zajmują całą szerokość */ .page.no-map .visuals{ grid-template-columns:1fr; @@ -314,9 +321,8 @@ const lat = parseFloat(mapEl.dataset.lat); const lon = parseFloat(mapEl.dataset.lon); const map = L.map(mapEl, { - zoomControl:false, attributionControl:false, - dragging:false, scrollWheelZoom:false - }).setView([lat, lon], 6); + attributionControl:false, + }).setView([lat, lon], 11); L.tileLayer('https://tile.thunderforest.com/cycle/{z}/{x}/{y}@2x.png?apikey=a8a97f0ae5134403ac38c1a075b03e15').addTo(map); L.marker([lat, lon]).addTo(map); setTimeout(() => map.invalidateSize(), 200);