-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.8.0 Beta
-
None
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" }
}
| For Gerrit Dashboard: QTBUG-57011 | ||||||
|---|---|---|---|---|---|---|
| # | Subject | Branch | Project | Status | CR | V |
| 176591,3 | Fix mapbox map loading in offline mode | 5.8 | qt/qtlocation | Status: MERGED | +2 | 0 |