mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-24 15:29:36 +02:00
fix: Display adventure category icon also on collection maps
This commit is contained in:
parent
12a6429812
commit
9e66c67c62
2 changed files with 4504 additions and 2 deletions
4499
frontend/package-lock.json
generated
Normal file
4499
frontend/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
|
@ -833,14 +833,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}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue