From 68e07d7d7beca5b4ea26b9fc6ff964014d28af4b Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Thu, 29 Jun 2023 00:29:17 +0200 Subject: [PATCH] Fix: actually pass the initial coordinate in the locationInput element, fix #1486 --- UI/Popup/MoveWizard.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/UI/Popup/MoveWizard.ts b/UI/Popup/MoveWizard.ts index 4247a6360..6d1de64eb 100644 --- a/UI/Popup/MoveWizard.ts +++ b/UI/Popup/MoveWizard.ts @@ -73,7 +73,7 @@ export default class MoveWizard extends Toggle { lockBounds: true, includeSearch: false, background: "photo", - startZoom: 17, + startZoom: 18, minZoom: 16, eraseAddressFields: false, }) @@ -139,6 +139,7 @@ export default class MoveWizard extends Toggle { new SvelteUIElement(LocationInput, { mapProperties, value, + initialCoordinate: { lon, lat }, }).SetClass("w-full h-full"), new SvelteUIElement(OpenBackgroundSelectorButton, { state }).SetClass( "absolute bottom-0 left-0"