EDIT: HERE Maps plugin started to work again. Qt Map component is still an option.
The various questions are still valid though, if someone does the migration exercise until I do
After the osm
plugin in 2021, it seems that it’s now HERE that stopped its support for the good old QML Map
object.
Last week, my application stopped to show HERE tiles, and when I tried to connect to my HERE account, it simply told me that… I didn’t have one? Seems that they silently cleaned up a lot of things
I’ve tried to recreate one HERE account to get API keys, but the problem is elsewhere, map tiles just don’t load anymore.
I guess the best solution is to go with Mapbox through @rinigus’s Mapbox GL bindings, right?
But are there any tutorial out there to help porting an app for someone that didn’t follow actively QML development in the past years?
- How to install properly the bidings on the Sailfish IDE?
I’ve managed more or less by downloading the rpms from OpenRepos and do:
$ scp -P 2223 -i ~/SailfishOS/vmshare/ssh/private_keys/sdk qmapboxgl-1.6.0git2-1.2.1.jolla_.i486.rpm
$ scp -P 2223 -i ~/SailfishOS/vmshare/ssh/private_keys/sdk qmapboxgl-1.6.0git2-1.2.1.jolla_.i486.rpm
$ ssh -p 2223 -i ~/SailfishOS/vmshare/ssh/private_keys/sdk root@localhost
# rpm -U qmapboxgl-1.6.0git2-1.2.1.jolla_.i486.rpm
# rpm -U mapboxgl-qml-1.7.7-1.2.2.jolla_.i486.rpm
I can then compile and run apps on the emulator, but the IDE still shows “QML module not found (MapboxMap)”. Not a blocker, but not very user friendly.
- How to migrate from
MapQuickItem
?
My app currently displays programatically a lot of QML objects on the map with that. With MapboxMap, I’ve managed to display a single position circle by copying the example here, but is there an easier way to display markers/QML objects, text, etc…? - How to make the map light? The MapboxMap is very heavy by default, because there are much more details that on PureMaps. How to configure that? What are the best defaults for a light map app?
Thanks in advance