From 790c2767e2dfbdca65f56ec95bf3cd69a98e4301 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Sun, 18 Jun 2023 00:52:26 +0200 Subject: [PATCH] Fix: pass along initial coordinates with the location input, prevents flashing of the ocean; fix #1469 --- UI/InputElement/Helpers/LocationInput.svelte | 2 +- UI/Map/MaplibreMap.svelte | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/UI/InputElement/Helpers/LocationInput.svelte b/UI/InputElement/Helpers/LocationInput.svelte index b76137a589..f94e819ebb 100644 --- a/UI/InputElement/Helpers/LocationInput.svelte +++ b/UI/InputElement/Helpers/LocationInput.svelte @@ -83,7 +83,7 @@
- +
export let attribution = false - let center = {} + export let center: Readable<{ lng: number ,lat : number }> = writable({lng: 0, lat: 0}) onMount(() => { $map.on("load", function () {