Fix location delegates

- Mark OSMLocationPlugina as singleton in cmake
- Use this plugin for the LocationChooser
This commit is contained in:
Tobias Fella
2024-03-29 13:23:30 +01:00
parent 878eb48cb0
commit 92351edcd0
6 changed files with 30 additions and 41 deletions

View File

@@ -47,10 +47,12 @@ ApplicationWindow {
isLive: true
heading: NaN
visible: !isNaN(root.latitude) && !isNaN(root.longitude)
Component.onCompleted: mapView.map.addMapItem(this)
}
MapItemView {
model: root.liveLocationModel
delegate: LocationMapItem {}
Component.onCompleted: mapView.map.addMapItemView(this)
}
Connections {