From 48d6f4dc3c1d643429298ef3c3d5785c9421c555 Mon Sep 17 00:00:00 2001 From: Dan Nemec Date: Thu, 17 Dec 2020 01:35:20 -0600 Subject: [PATCH] Add always-on-top pink marker at your original location to assist orienting oneself on the map --- instagram-locations.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/instagram-locations.py b/instagram-locations.py index 286d414..ca53952 100644 --- a/instagram-locations.py +++ b/instagram-locations.py @@ -102,6 +102,10 @@ html_template = ''' width: 100%; height: 600px; } + img.selected-location { + filter: hue-rotate(120deg); + z-index: 999 !important; + } @@ -126,6 +130,9 @@ html_template = ''' L.geoJSON(locs, { onEachFeature: onEachFeature }).addTo(map); + + var centerMarker = L.marker([$lat, $lng]).addTo(map); + centerMarker._icon.classList.add('selected-location'); '''