fnp
/
wolnelektury.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9723ea2
)
Opepager: allow moving map
author
Radek Czajka
<rczajka@rczajka.pl>
Tue, 13 Oct 2026 10:03:21 +0000
(12:03 +0200)
committer
Radek Czajka
<rczajka@rczajka.pl>
Tue, 13 Oct 2026 10:03:21 +0000
(12:03 +0200)
src/references/templates/references/onepager.html
patch
|
blob
|
history
diff --git
a/src/references/templates/references/onepager.html
b/src/references/templates/references/onepager.html
index
e4fd93c
..
e2581d4
100644
(file)
--- a/
src/references/templates/references/onepager.html
+++ b/
src/references/templates/references/onepager.html
@@
-100,6
+100,13
@@
gap:7mm;
margin-bottom:6mm;
}
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;
/* 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, {
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);
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);