Google Map api metrics (api key) not working with vladest plugin
Unsolved
QML and Qt Quick
-
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 metricsBy the way, should I see any metrics with this plugin? The map is working even without api key specification.