fnp
/
wolnelektury.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e4d004c
)
Use CycleMap for map.
author
Radek Czajka
<rczajka@rczajka.pl>
Mon, 9 Nov 2020 08:22:26 +0000
(09:22 +0100)
committer
Radek Czajka
<rczajka@rczajka.pl>
Mon, 9 Nov 2020 08:22:26 +0000
(09:22 +0100)
src/wolnelektury/static/js/book_text/references.js
patch
|
blob
|
history
diff --git
a/src/wolnelektury/static/js/book_text/references.js
b/src/wolnelektury/static/js/book_text/references.js
index
7c98763
..
23f7b03
100644
(file)
--- a/
src/wolnelektury/static/js/book_text/references.js
+++ b/
src/wolnelektury/static/js/book_text/references.js
@@
-18,8
+18,8
@@
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://
{s}.tile.openstreetmap.org/{z}/{x}/{y}.png
', {
- attribution: 'Map
data © <a href="http://
openstreetmap.org/copyright">OpenStreetMap contributors</a>'
+ L.tileLayer('https://
tile.thunderforest.com/cycle/{z}/{x}/{y}.png?apikey=a8a97f0ae5134403ac38c1a075b03e15
', {
+ attribution: 'Map
s © <a href="http://www.thunderforest.com">Thunderforest</a>, Data © <a href="http://www.
openstreetmap.org/copyright">OpenStreetMap contributors</a>'
}).addTo(map);
map_enabled = true;
}).addTo(map);
map_enabled = true;