Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Google Map api metrics (api key) not working with vladest plugin
Forum Update on Monday, May 27th 2025

Google Map api metrics (api key) not working with vladest plugin

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 209 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • isstarI Offline
    isstarI Offline
    isstar
    wrote on last edited by isstar
    #1

    Hi. I made simple project in Qt Creator with QML and https://github.com/vladest/googlemaps. The map is working fine, but Google doesn't see my api key activity. I have another project on JS with the same api key, which activity is being recognized by Google. I enabled all api's in my google maps account.

    Rectangle
    {
    width: 1024
    height: 600
    
        Plugin
        {
            id: mapPlugin
            name: "googlemaps"
            PluginParameter
            {
                name: "googlemaps.apikey"  //no metrics
                //name: "googlemaps.maps.apikey"   //no metrics
                value: "AI........................................mE"
            }
        }
    
        Map
        {
            id: map
            anchors.fill: parent
            plugin: mapPlugin
            center: QtPositioning.coordinate(59.919716, 30.277555)
            zoomLevel: map_zoom_level
    

    I rebuild plugin, adding direct specifing of api key like this:

    if (parameters.contains(QStringLiteral("googlemaps.places.apikey")))
        m_apiKey = parameters.value(QStringLiteral("googlemaps.places.apikey")).toString().toLatin1();
    else
        m_apiKey = parameters.value(QStringLiteral("googlemaps.apikey")).toString().toLatin1();
    
    m_apiKey = "AI................................................mE";
    

    I found 4 .cpp files where i can do it. I redeployed project, and refreshed plugin library files in the project and Qt folders. No metrics.

    Qt_5_15_2_MinGW_64_bit-Release
    Windows 10 - no metrics
    Debian Bullseye - no metrics

    By the way, should I see any metrics with this plugin? The map is working even without api key specification.

    x.jpg

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved