Skip to content

Commit

Permalink
potential api fix
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelscholle committed Jul 19, 2024
1 parent f99d5fa commit 4259a05
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion qml/ui/widgets/map/MapWidget.qml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,15 @@ MapWidgetForm {
function createMap(parent, provider) {
console.log("createMap(" + provider + ")");
var plugin
plugin = Qt.createQmlObject('import QtLocation 5.15; Plugin{ name:"' + provider + '"}', mapWidget);
plugin = Qt.createQmlObject(`
import QtLocation 5.15
Plugin {
name: "` + provider + `"
PluginParameter {
name: "osm.mapping.custom.host";
value: "https://tile.openstreetmap.org/" }
}
`, mapWidget);
console.log("Using plugin: " + plugin.name);

if (plugin.supportsMapping()) {
Expand Down

0 comments on commit 4259a05

Please sign in to comment.