We now need a map of some sort to show our location findings.
Note
The Map
component for QML is the only way Qt provides for mapping, so you will have to use Qt Quick.
The Map
component can be backed by various backend plugins. In fact, you need to specify which plugin you are using. Map
has built-in support for the following plugins:
Provider | Key | Notes | Url |
Esri | esri | Subscription required |
|
HERE | here | Access token required |
|
Mapbox | mapbox | Access token required |
|
Mapbox GL | mapboxgl | Access token required |
|
Open Street Map (OSM) | osm | Free access |
|
I will be using the OSM and HERE providers.
The HERE plugin requires an account at developer.here.com
. It's easy to sign up and there is a free version. You need the app ID and app code to access their maps and API.