Fix sending locations

This commit is contained in:
Tobias Fella
2023-11-02 19:46:06 +01:00
parent 7fdb617b33
commit dbb0269354

View File

@@ -34,7 +34,7 @@ Components.AbstractMaximizeComponent {
]
content: MapView {
id: map
id: mapView
map.plugin: Plugin {
name: "osm"
PluginParameter {
@@ -50,7 +50,7 @@ Components.AbstractMaximizeComponent {
MouseArea {
anchors.fill: parent
onClicked: {
root.location = map.toCoordinate(Qt.point(mouseX, mouseY), false)
root.location = mapView.map.toCoordinate(Qt.point(mouseX, mouseY), false)
}
}