OSM api Key for QT
Unsolved
General and Desktop
-
Hi everyone. I'm facing some problems when implementing an OSM map into QT. I watched some videos this type and it works fine for them. But in my case i get to visualize the map but with a message "API KEY REQUIERED" and with no utilities. I've tried to fix it but i failed. if someone can help me please.
i'll share my QML file if that can helpimport QtQuick 2.15 import QtLocation 5.15 import QtPositioning 5.15 import QtQuick.Controls 2.15 ApplicationWindow { visible: true width: 800 height: 600 Map { anchors.fill: parent plugin: Plugin { name: "osm" PluginParameter { name: "osm.mapping.providersrepository.disabled" value: "true" } } PluginParameter { name: "osm.mapping.providersrepository.address" value: "http://maps-redirect.qt.io/osm/5.6/" } center: QtPositioning.coordinate(51.5072, -0.1276) zoomLevel: 10 } }
Thanks
-
Hi @Putrazoo, and welcome!
-
You can see following videos on youtube About Qt Location And Qt Positioning Application.
Qt Location And Qt Positioning : https://www.youtube.com/playlist?list=PLh0cogPqXcJOVXsLsEKEFi4CbbBou2neH
I hope you will get the solution from this video.