feat: add entry url to map_entries data and as data-url attribute on all markers

This commit is contained in:
2026-06-19 22:18:04 +02:00
parent 997baf4cc3
commit 3ef8d48ee2
4 changed files with 8 additions and 2 deletions
@@ -58,6 +58,7 @@ feedMap.on('load', function () {
bounds.extend(lngLat);
var el = MapUtils.createDotMarker(isLatest);
el.dataset.url = entry.url;
var popup = new maplibregl.Popup({ offset: 12, closeButton: false, closeOnClick: false, className: 'map-tip-popup' })
.setLngLat(lngLat)
.setHTML('<span class="map-tip">' + entry.title + '</span>');