summaryrefslogtreecommitdiff
path: root/src/plugins/geoservices/mapbox
diff options
context:
space:
mode:
authorPaolo Angelelli <paolo.angelelli@theqtcompany.com>2016-08-11 11:59:21 +0200
committerPaolo Angelelli <paolo.angelelli@theqtcompany.com>2016-08-26 14:05:56 +0000
commit832030f271105a96bdde70b0526df659f21de565 (patch)
treea75f5bd9e7e62635e360170a3228ca65eb10fdcc /src/plugins/geoservices/mapbox
parent9305015c3171dfe944e967081e879a365ca9a63f (diff)
downloadqtlocation-832030f271105a96bdde70b0526df659f21de565.tar.gz
Set lowDPI tiles to be the default
Since HighDPI tiles are currently causing severe performance penalties on mobile devices (at least iOS devices), this patch sets the default mode to highdpi = false. Change-Id: I2f99e3955ecccd905e8962d005421d1b5276ea84 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io> Reviewed-by: Michal Klocek <michal.klocek@qt.io> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'src/plugins/geoservices/mapbox')
-rw-r--r--src/plugins/geoservices/mapbox/qgeotiledmappingmanagerenginemapbox.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/geoservices/mapbox/qgeotiledmappingmanagerenginemapbox.cpp b/src/plugins/geoservices/mapbox/qgeotiledmappingmanagerenginemapbox.cpp
index 2f1a29c1..4a89a898 100644
--- a/src/plugins/geoservices/mapbox/qgeotiledmappingmanagerenginemapbox.cpp
+++ b/src/plugins/geoservices/mapbox/qgeotiledmappingmanagerenginemapbox.cpp
@@ -108,11 +108,11 @@ QGeoTiledMappingManagerEngineMapbox::QGeoTiledMappingManagerEngineMapbox(const Q
setSupportedMapTypes(mapTypes);
- int scaleFactor = 2;
+ int scaleFactor = 1;
if (parameters.contains(QStringLiteral("mapbox.highdpi_tiles"))) {
const QString param = parameters.value(QStringLiteral("mapbox.highdpi_tiles")).toString().toLower();
- if (param == "false")
- scaleFactor = 1;
+ if (param == "true")
+ scaleFactor = 2;
}
QGeoTileFetcherMapbox *tileFetcher = new QGeoTileFetcherMapbox(scaleFactor, this);