From: Radek Czajka Date: Mon, 9 Nov 2020 11:33:40 +0000 (+0100) Subject: Better map. X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/845904c7c85fbed75b10be702f102d817ed0d7f5?hp=94a24222f21ddd57ae1e95ea52389c4c036779e6 Better map. --- diff --git a/src/wolnelektury/static/js/book_text/references.js b/src/wolnelektury/static/js/book_text/references.js index 5a6af4948..4c72fe60b 100644 --- a/src/wolnelektury/static/js/book_text/references.js +++ b/src/wolnelektury/static/js/book_text/references.js @@ -8,10 +8,8 @@ $("#settings-references").css('display', 'block'); } - - var map_enabled = false; - var marker = L.marker([0,0]); + var marker = L.circleMarker([0,0]); var map = null; function enable_map() { @@ -62,7 +60,6 @@ enable_map(); marker.setLatLng(ref.location); - //marker.setContent(ref.label); marker.bindTooltip(ref.label).openTooltip(); map.addLayer(marker); map.panTo(ref.location, { diff --git a/src/wolnelektury/static/scss/book_text/references.scss b/src/wolnelektury/static/scss/book_text/references.scss index 49f25b27e..e188025af 100644 --- a/src/wolnelektury/static/scss/book_text/references.scss +++ b/src/wolnelektury/static/scss/book_text/references.scss @@ -13,6 +13,11 @@ a.reference.interesting::after { right: 0; z-index:100; background: #eee; + + img { + margin: 0; + } + #reference-map { height:400px; width: 300px; @@ -29,7 +34,6 @@ a.reference.interesting::after { vertical-align: middle; margin: 0 10px 0 0; img { - margin: 0; height: 100px; } }