diff --git a/web/src/lib/components/asset-viewer/detail-panel.svelte b/web/src/lib/components/asset-viewer/detail-panel.svelte
index 8d066b4920..c37b28b9a4 100644
--- a/web/src/lib/components/asset-viewer/detail-panel.svelte
+++ b/web/src/lib/components/asset-viewer/detail-panel.svelte
@@ -35,10 +35,13 @@
const lng = asset.exifInfo?.longitude;
if (lat && lng) {
- return [lat, lng] as LatLngTuple;
+ return [Number(lat.toFixed(7)), Number(lng.toFixed(7))] as LatLngTuple;
}
})();
+ $: lat = latlng ? latlng[0] : undefined;
+ $: lng = latlng ? latlng[1] : undefined;
+
$: people = asset.people || [];
const dispatch = createEventDispatcher();
@@ -259,7 +262,14 @@
attribution: '© OpenStreetMap',
}}
/>
-
+
+
+ {lat}, {lng}
+
+
+ Open in OpenStreetMap
+
+
{/await}
diff --git a/web/src/lib/components/shared-components/leaflet/marker.svelte b/web/src/lib/components/shared-components/leaflet/marker.svelte
index dac3967037..8731e66d04 100644
--- a/web/src/lib/components/shared-components/leaflet/marker.svelte
+++ b/web/src/lib/components/shared-components/leaflet/marker.svelte
@@ -1,13 +1,13 @@
+
+
+
+