diff --git a/src/lib/components/common/Valves/MapSelector.svelte b/src/lib/components/common/Valves/MapSelector.svelte index 38865d84f7..c0853581a3 100644 --- a/src/lib/components/common/Valves/MapSelector.svelte +++ b/src/lib/components/common/Valves/MapSelector.svelte @@ -41,6 +41,15 @@ onMount(async () => { map = L.map(mapElement).setView(setViewLocation ? setViewLocation : [51.505, -0.09], 10); + if (setViewLocation) { + points = [ + { + coords: setViewLocation, + content: `Lat: ${setViewLocation[0]}, Lng: ${setViewLocation[1]}` + } + ]; + } + L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { attribution: '© OpenStreetMap contributors'