Fix: actually pass the initial coordinate in the locationInput element, fix #1486

This commit is contained in:
Pieter Vander Vennet 2023-06-29 00:29:17 +02:00
parent 775886b2b9
commit 68e07d7d7b

View file

@ -73,7 +73,7 @@ export default class MoveWizard extends Toggle {
lockBounds: true, lockBounds: true,
includeSearch: false, includeSearch: false,
background: "photo", background: "photo",
startZoom: 17, startZoom: 18,
minZoom: 16, minZoom: 16,
eraseAddressFields: false, eraseAddressFields: false,
}) })
@ -139,6 +139,7 @@ export default class MoveWizard extends Toggle {
new SvelteUIElement(LocationInput, { new SvelteUIElement(LocationInput, {
mapProperties, mapProperties,
value, value,
initialCoordinate: { lon, lat },
}).SetClass("w-full h-full"), }).SetClass("w-full h-full"),
new SvelteUIElement(OpenBackgroundSelectorButton, { state }).SetClass( new SvelteUIElement(OpenBackgroundSelectorButton, { state }).SetClass(
"absolute bottom-0 left-0" "absolute bottom-0 left-0"