From 845904c7c85fbed75b10be702f102d817ed0d7f5 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Mon, 9 Nov 2020 12:33:40 +0100 Subject: [PATCH] Better map. --- src/wolnelektury/static/js/book_text/references.js | 5 +---- src/wolnelektury/static/scss/book_text/references.scss | 6 +++++- 2 files changed, 6 insertions(+), 5 deletions(-) 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; } } -- 2.20.1