1
0
mirror of https://github.com/immich-app/immich.git synced 2025-07-02 05:44:37 +02:00

feat(web): open in map view (#11592)

This commit is contained in:
Jason Rasmussen
2024-08-05 11:25:53 -04:00
committed by GitHub
parent 54d2c12fff
commit 94da5942bd
4 changed files with 25 additions and 7 deletions

View File

@ -42,6 +42,7 @@
import AlbumListItemDetails from './album-list-item-details.svelte';
import DetailPanelDescription from '$lib/components/asset-viewer/detail-panel-description.svelte';
import { t } from 'svelte-i18n';
import { goto } from '$app/navigation';
export let asset: AssetResponseDto;
export let albums: AlbumResponseDto[] = [];
@ -441,6 +442,7 @@
zoom={15}
simplified
useLocationPin
onOpenInMapView={() => goto(`${AppRoute.MAP}#15/${latlng.lat}/${latlng.lng}`)}
>
<svelte:fragment slot="popup" let:marker>
{@const { lat, lon } = marker}