1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-08-03 20:25: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} {#each adventures as adventure}
{#if adventure.longitude && adventure.latitude} {#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]}> <Popup openOn="click" offset={[0, -10]}>
<div class="text-lg text-black font-bold">{adventure.name}</div> <div class="text-lg text-black font-bold">{adventure.name}</div>
<p class="font-semibold text-black text-md"> <p class="font-semibold text-black text-md">
{adventure.category?.display_name + ' ' + adventure.category?.icon} {adventure.category?.display_name + ' ' + adventure.category?.icon}
</p> </p>
</Popup> </Popup>
</DefaultMarker> </Marker>
{/if} {/if}
{/each} {/each}
{#each transportations as transportation} {#each transportations as transportation}