mirror of
https://github.com/bellingcat/instagram-location-search.git
synced 2026-06-12 20:38:30 +03:00
Add always-on-top pink marker at your original location to assist orienting oneself on the map
This commit is contained in:
@@ -102,6 +102,10 @@ html_template = '''<html>
|
||||
width: 100%;
|
||||
height: 600px;
|
||||
}
|
||||
img.selected-location {
|
||||
filter: hue-rotate(120deg);
|
||||
z-index: 999 !important;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
@@ -126,6 +130,9 @@ html_template = '''<html>
|
||||
L.geoJSON(locs, {
|
||||
onEachFeature: onEachFeature
|
||||
}).addTo(map);
|
||||
|
||||
var centerMarker = L.marker([$lat, $lng]).addTo(map);
|
||||
centerMarker._icon.classList.add('selected-location');
|
||||
</script>
|
||||
</body>
|
||||
</html>'''
|
||||
|
||||
Reference in New Issue
Block a user