forked from MapComplete/MapComplete
Fix: addnewpoint-dialog works again
This commit is contained in:
parent
61c417c546
commit
8ed0a32d15
4 changed files with 24 additions and 16 deletions
|
@ -17,7 +17,7 @@
|
|||
|
||||
let dispatch = createEventDispatcher<{appliedLayer}>()
|
||||
|
||||
export let favourite : UIEventSource<string> = undefined
|
||||
export let favourite : UIEventSource<string> | undefined = undefined
|
||||
|
||||
|
||||
let rasterLayer = new UIEventSource<RasterLayerPolygon>(availableLayers.data?.[0])
|
||||
|
@ -39,11 +39,11 @@
|
|||
}
|
||||
rasterLayer.setData(fav)
|
||||
}))
|
||||
}
|
||||
|
||||
onDestroy(rasterLayer.addCallbackAndRunD(selected => {
|
||||
favourite?.setData(selected.properties.id)
|
||||
}))
|
||||
onDestroy(rasterLayer.addCallbackAndRunD(selected => {
|
||||
favourite?.setData(selected.properties.id)
|
||||
}))
|
||||
}
|
||||
|
||||
let rasterLayerOnMap = UIEventSource.feedFrom(rasterLayer)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue