forked from MapComplete/MapComplete
UX: add location picker to new not input element, fix #1665
This commit is contained in:
parent
5f918b607b
commit
a0d450407f
5 changed files with 103 additions and 59 deletions
|
@ -563,7 +563,10 @@ export default class SpecialVisualizations {
|
|||
feature: Feature
|
||||
): BaseUIElement {
|
||||
const [lon, lat] = GeoOperations.centerpointCoordinates(feature)
|
||||
return new SvelteUIElement(CreateNewNote, { state, coordinate: { lon, lat } })
|
||||
return new SvelteUIElement(CreateNewNote, {
|
||||
state,
|
||||
coordinate: new UIEventSource({ lon, lat }),
|
||||
})
|
||||
},
|
||||
},
|
||||
new CloseNoteButton(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue