1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-08-02 19:55:18 +02:00

Merge pull request #465 from larsl-net/collection-map-icons

Display adventure category icon also on collection maps
This commit is contained in:
Sean Morley 2025-01-23 17:46:05 -05:00 committed by GitHub
commit 6b090096d6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -838,14 +838,17 @@
>
{#each adventures as adventure}
{#if adventure.longitude && adventure.latitude}
<DefaultMarker lngLat={{ lng: adventure.longitude, lat: adventure.latitude }}>
<Marker lngLat={{ lng: adventure.longitude, lat: adventure.latitude }}>
<span class="text-xl">
{adventure.category?.icon}
</span>
<Popup openOn="click" offset={[0, -10]}>
<div class="text-lg text-black font-bold">{adventure.name}</div>
<p class="font-semibold text-black text-md">
{adventure.category?.display_name + ' ' + adventure.category?.icon}
</p>
</Popup>
</DefaultMarker>
</Marker>
{/if}
{/each}
{#each transportations as transportation}