Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.8.0 Beta
-
None
Description
Using mapbox plugin it is not possible to view maps offline. This due to incorrect filename parsing in qgeofiletilecachemapbox.cpp. If mapbox.map_id contains a period in value, empty QGeoTileSpec is returned
QGeoTileSpec QGeoFileTileCacheMapbox::filenameToTileSpec(const QString &filename) const { QStringList parts = filename.split('.'); if (parts.length() != 2) return QGeoTileSpec();
According to MapBox documentation map id's shoud contain a period
https://www.mapbox.com/help/define-map-id/
With this Map plugin definition where the problem occurs:
plugin: Plugin { id: plugin preferred: ["mapbox"] PluginParameter { name: "mapbox.access_token"; value: <myaccesstoken> } PluginParameter { name: "mapbox.map_id"; value: "project.handle" } }