In Qt6, Map just shows a static map, while MapView allows for zooming, moving, etc.
This commit is contained in:
Tobias Fella
2023-10-23 20:36:27 +02:00
parent cfc5202645
commit 19e197e0ec
5 changed files with 53 additions and 27 deletions

View File

@@ -33,9 +33,9 @@ Components.AbstractMaximizeComponent {
}
]
content: Map {
content: MapView {
id: map
plugin: Plugin {
map.plugin: Plugin {
name: "osm"
PluginParameter {
name: "osm.useragent"
@@ -81,5 +81,11 @@ Components.AbstractMaximizeComponent {
}
}
}
Connections {
target: mapView.map
function onCopyrightLinkActivated() {
Qt.openUrlExternally(link)
}
}
}
}