summaryrefslogtreecommitdiff
path: root/src/plugins/geoservices/mapbox/qgeotiledmappingmanagerenginemapbox.h
diff options
context:
space:
mode:
authorPaolo Angelelli <paolo.angelelli@theqtcompany.com>2016-06-15 22:50:21 +0200
committerPaolo Angelelli <paolo.angelelli@theqtcompany.com>2016-06-30 11:40:05 +0000
commit706f97d93b7e0e01bc287d9379e692ffd1bd08a6 (patch)
tree5d9d9aa54abee0902eae1e6f3a38adc9b2454fc5 /src/plugins/geoservices/mapbox/qgeotiledmappingmanagerenginemapbox.h
parente729fabed1b78729f65503ed3a7e0d5fddb13947 (diff)
downloadqtlocation-706f97d93b7e0e01bc287d9379e692ffd1bd08a6.tar.gz
Improve Mapbox geoservice plugin
This patch adds standard mapbox map modes so that they could be used out of the box without the need for specifying it as parameter, and also adds a QGeoFileTileCache to the plugin, since the Mapbox TOS allow a limited caching even in the free plan. The default cache max disk usage has been set accordingly. The mapbox.map_id parameter is now optional, meaning that things will work like before if present, but will work with the default mapbox styles if not. Change-Id: I4056a3706f47d7f5c46a873c135b743106647fc0 Reviewed-by: Topi Reiniƶ <topi.reinio@theqtcompany.com> Reviewed-by: Michal Klocek <michal.klocek@theqtcompany.com>
Diffstat (limited to 'src/plugins/geoservices/mapbox/qgeotiledmappingmanagerenginemapbox.h')
-rw-r--r--src/plugins/geoservices/mapbox/qgeotiledmappingmanagerenginemapbox.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/geoservices/mapbox/qgeotiledmappingmanagerenginemapbox.h b/src/plugins/geoservices/mapbox/qgeotiledmappingmanagerenginemapbox.h
index 379ca6b8..292e4211 100644
--- a/src/plugins/geoservices/mapbox/qgeotiledmappingmanagerenginemapbox.h
+++ b/src/plugins/geoservices/mapbox/qgeotiledmappingmanagerenginemapbox.h
@@ -53,6 +53,9 @@ public:
~QGeoTiledMappingManagerEngineMapbox();
QGeoMap *createMap();
+
+private:
+ QString m_cacheDirectory;
};
QT_END_NAMESPACE