'Customizing Qt QML Map using Google maps plugins

I am trying to customize QML Map using Google Maps. I am using this plugin by vladest, which adds Google Map support for QtPositioning Map and works as expected, but I didn't find out how to customize it.

I have tried to parametrize Plugin in QML using PluginParameter:

Plugin {
    id: mapPlugin
    name: "googlemaps"

    // specify plugin parameters if necessary
    //PluginParameter {
    //    name:"googlemaps.maps.apikey"
    //    value:"<--------->"
    //}
    //PluginParameter {
    //    name:"googlemaps.maps.identifier" // I have also tried mapId & map_id instead of identifier
    //    value: "8e0a97af9386fef"
    //}
    //PluginParameter {
    //    name:"googlemaps.maps.identifier"
    //    value: "8e0a97af9386fef"
    //}
    //PluginParameter {
    //    name:"googlemaps.identifier"
    //    value: "8e0a97af9386fef"
    //}
    //PluginParameter {
    //    name:"googlemaps.identifier"
    //    value: "8e0a97af9386fef"
    //}
    //PluginParameter {
    //    name:"identifier"
    //    value: "8e0a97af9386fef"
    //}
    //PluginParameter {
    //    name:"identifier"
    //    value: "8e0a97af9386fef"
    //}
    //PluginParameter {
    //    name:"googlemaps.maps.Map.identifier"
    //    value: "8e0a97af9386fef"
    //}
    //PluginParameter {
    //    name:"googlemaps.maps.map.identifier"
    //    value: "8e0a97af9386fef"
    //}
    //PluginParameter {
    //    name:"googlemaps.maps.map.identifier"
    //    value: "8e0a97af9386fef"
}

Map {
    anchors.fill: parent
    plugin: mapPlugin
}

I also studied Google API via styling and I have also tried example of styling via mapId, but didn't manage to make it work.

I have also tried to edit plugin code and add map ID into tile request query, but without success.

Is there any way to customize map?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source