fnp
/
wolnelektury.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
919213e
)
Change map
author
Radek Czajka
<rczajka@rczajka.pl>
Tue, 13 Oct 2026 10:32:32 +0000
(12:32 +0200)
committer
Radek Czajka
<rczajka@rczajka.pl>
Tue, 13 Oct 2026 10:32:32 +0000
(12:32 +0200)
src/references/templates/references/map.html
patch
|
blob
|
history
src/references/templates/references/onepager.html
patch
|
blob
|
history
src/wolnelektury/static/js/book_text/references.js
patch
|
blob
|
history
diff --git
a/src/references/templates/references/map.html
b/src/references/templates/references/map.html
index
c067f49
..
b7951c1
100644
(file)
--- a/
src/references/templates/references/map.html
+++ b/
src/references/templates/references/map.html
@@
-42,7
+42,7
@@
});
}
});
}
- L.tileLayer('https://
{s}.tile.openstreetmap.org/{z}/{x}/{y}.png
', {
+ L.tileLayer('https://
tile.thunderforest.com/neighbourhood/{z}/{x}/{y}.png?apikey=a8a97f0ae5134403ac38c1a075b03e15
', {
attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
}).addTo(map);
var markers = L.markerClusterGroup();
attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
}).addTo(map);
var markers = L.markerClusterGroup();
diff --git
a/src/references/templates/references/onepager.html
b/src/references/templates/references/onepager.html
index
1c6d9b4
..
607f5e0
100644
(file)
--- a/
src/references/templates/references/onepager.html
+++ b/
src/references/templates/references/onepager.html
@@
-323,7
+323,7
@@
const map = L.map(mapEl, {
attributionControl:false,
}).setView([lat, lon], 11);
const map = L.map(mapEl, {
attributionControl:false,
}).setView([lat, lon], 11);
- L.tileLayer('https://tile.thunderforest.com/
atlas
/{z}/{x}/{y}@2x.png?apikey=a8a97f0ae5134403ac38c1a075b03e15').addTo(map);
+ L.tileLayer('https://tile.thunderforest.com/
neighbourhood
/{z}/{x}/{y}@2x.png?apikey=a8a97f0ae5134403ac38c1a075b03e15').addTo(map);
L.marker([lat, lon]).addTo(map);
setTimeout(() => map.invalidateSize(), 200);
}
L.marker([lat, lon]).addTo(map);
setTimeout(() => map.invalidateSize(), 200);
}
diff --git
a/src/wolnelektury/static/js/book_text/references.js
b/src/wolnelektury/static/js/book_text/references.js
index
baaa8d3
..
805f24d
100644
(file)
--- a/
src/wolnelektury/static/js/book_text/references.js
+++ b/
src/wolnelektury/static/js/book_text/references.js
@@
-21,7
+21,7
@@
if (map_enabled) return;
map = L.map('reference-map').setView([0, 0], 11);
if (map_enabled) return;
map = L.map('reference-map').setView([0, 0], 11);
- L.tileLayer('https://tile.thunderforest.com/
atlas
/{z}/{x}/{y}.png?apikey=a8a97f0ae5134403ac38c1a075b03e15', {
+ L.tileLayer('https://tile.thunderforest.com/
neighbourhood
/{z}/{x}/{y}.png?apikey=a8a97f0ae5134403ac38c1a075b03e15', {
attribution: 'Maps © <a href="http://www.thunderforest.com">Thunderforest</a>, Data © <a href="http://www.openstreetmap.org/copyright">OpenStreetMap contributors</a>'
}).addTo(map);
marker = L.circleMarker([0,0]);
attribution: 'Maps © <a href="http://www.thunderforest.com">Thunderforest</a>, Data © <a href="http://www.openstreetmap.org/copyright">OpenStreetMap contributors</a>'
}).addTo(map);
marker = L.circleMarker([0,0]);