mirror of
https://github.com/immich-app/immich.git
synced 2024-12-29 15:11:58 +00:00
feat: change web asset detail map to zoom level 12.5 (#11643)
This commit is contained in:
parent
fb68da2b51
commit
14689462f8
2 changed files with 4 additions and 4 deletions
|
@ -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"
|
||||||
>
|
>
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue