fix: deduplicate map markers for home cities Murnau and Garmisch
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -26,9 +26,17 @@ leafletMap: true
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% set mapPoints = [] %}
|
{% set mapPoints = [] %}
|
||||||
|
{% set homeSeenNames = [] %}
|
||||||
{% for c in checkins %}
|
{% for c in checkins %}
|
||||||
{% if c.latitude and c.longitude %}
|
{% 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 %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user