0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-01-07 00:50:23 -05:00
This commit is contained in:
waclaw66 2023-12-21 16:28:45 +01:00 committed by GitHub
parent f602295bf9
commit 2790a46703
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -167,7 +167,11 @@
}} }}
> >
{#if useLocationPin} {#if useLocationPin}
<Icon path={mdiMapMarker} size="60px" class="dark:text-immich-dark-primary text-immich-primary" /> <Icon
path={mdiMapMarker}
size="50px"
class="location-pin dark:text-immich-dark-primary text-immich-primary"
/>
{:else} {:else}
<img <img
src={api.getAssetThumbnailUrl(feature.properties?.id)} src={api.getAssetThumbnailUrl(feature.properties?.id)}
@ -175,13 +179,18 @@
alt={`Image with id ${feature.properties?.id}`} alt={`Image with id ${feature.properties?.id}`}
/> />
{/if} {/if}
{#if $$slots.popup} {#if $$slots.popup}
<Popup openOn="click" closeOnClickOutside> <Popup offset={[0, -30]} openOn="click" closeOnClickOutside>
<slot name="popup" marker={asMarker(feature)} /> <slot name="popup" marker={asMarker(feature)} />
</Popup> </Popup>
{/if} {/if}
</MarkerLayer> </MarkerLayer>
</GeoJSON> </GeoJSON>
</MapLibre> </MapLibre>
<style>
.location-pin {
transform: translate(0, -50%);
filter: drop-shadow(0 3px 3px rgb(0 0 0 / 0.3));
}
</style>
{/await} {/await}