Fix sending locations
This commit is contained in:
@@ -34,7 +34,7 @@ Components.AbstractMaximizeComponent {
|
|||||||
]
|
]
|
||||||
|
|
||||||
content: MapView {
|
content: MapView {
|
||||||
id: map
|
id: mapView
|
||||||
map.plugin: Plugin {
|
map.plugin: Plugin {
|
||||||
name: "osm"
|
name: "osm"
|
||||||
PluginParameter {
|
PluginParameter {
|
||||||
@@ -50,7 +50,7 @@ Components.AbstractMaximizeComponent {
|
|||||||
MouseArea {
|
MouseArea {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
onClicked: {
|
onClicked: {
|
||||||
root.location = map.toCoordinate(Qt.point(mouseX, mouseY), false)
|
root.location = mapView.map.toCoordinate(Qt.point(mouseX, mouseY), false)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user