1
0
mirror of https://github.com/immich-app/immich.git synced 2024-11-28 09:33:27 +02:00

feat: change web asset detail map to zoom level 12.5 (#11643)

This commit is contained in:
Zack Pollard 2024-08-07 23:38:02 +01:00 committed by GitHub
parent fb68da2b51
commit 14689462f8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -439,17 +439,17 @@
}, },
]} ]}
center={latlng} center={latlng}
zoom={15} zoom={12.5}
simplified simplified
useLocationPin useLocationPin
onOpenInMapView={() => goto(`${AppRoute.MAP}#15/${latlng.lat}/${latlng.lng}`)} onOpenInMapView={() => goto(`${AppRoute.MAP}#12.5/${latlng.lat}/${latlng.lng}`)}
> >
<svelte:fragment slot="popup" let:marker> <svelte:fragment slot="popup" let:marker>
{@const { lat, lon } = marker} {@const { lat, lon } = marker}
<div class="flex flex-col items-center gap-1"> <div class="flex flex-col items-center gap-1">
<p class="font-bold">{lat.toPrecision(6)}, {lon.toPrecision(6)}</p> <p class="font-bold">{lat.toPrecision(6)}, {lon.toPrecision(6)}</p>
<a <a
href="https://www.openstreetmap.org/?mlat={lat}&mlon={lon}&zoom=15#map=15/{lat}/{lon}" href="https://www.openstreetmap.org/?mlat={lat}&mlon={lon}&zoom=13#map=15/{lat}/{lon}"
target="_blank" target="_blank"
class="font-medium text-immich-primary" class="font-medium text-immich-primary"
> >

View File

@ -37,7 +37,7 @@
$: lat = asset?.exifInfo?.latitude ?? undefined; $: lat = asset?.exifInfo?.latitude ?? undefined;
$: lng = asset?.exifInfo?.longitude ?? undefined; $: lng = asset?.exifInfo?.longitude ?? undefined;
$: zoom = lat !== undefined && lng !== undefined ? 15 : 1; $: zoom = lat !== undefined && lng !== undefined ? 12.5 : 1;
$: { $: {
if (places) { if (places) {