From 14e75e38aa704ade7fee096babab411469f7d6c0 Mon Sep 17 00:00:00 2001 From: svemagie <869694+svemagie@users.noreply.github.com> Date: Tue, 24 Mar 2026 17:34:03 +0100 Subject: [PATCH] fix: deduplicate map markers for home cities Murnau and Garmisch Co-Authored-By: Claude Sonnet 4.6 --- where.njk | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/where.njk b/where.njk index a0c855d..b04516d 100644 --- a/where.njk +++ b/where.njk @@ -26,9 +26,17 @@ leafletMap: true {% endif %} {% set mapPoints = [] %} + {% set homeSeenNames = [] %} {% for c in checkins %} {% if c.latitude and c.longitude %} - {% set mapPoints = (mapPoints.push({name: c.name, lat: c.latitude, lng: c.longitude, url: c.venueWebsiteUrl}), mapPoints) %} + {% if "Murnau" in (c.locality or "") or "Garmisch" in (c.locality or "") %} + {% if c.name not in homeSeenNames %} + {% set mapPoints = (mapPoints.push({name: c.name, lat: c.latitude, lng: c.longitude, url: c.venueWebsiteUrl}), mapPoints) %} + {% set homeSeenNames = (homeSeenNames.push(c.name), homeSeenNames) %} + {% endif %} + {% else %} + {% set mapPoints = (mapPoints.push({name: c.name, lat: c.latitude, lng: c.longitude, url: c.venueWebsiteUrl}), mapPoints) %} + {% endif %} {% endif %} {% endfor %}