diff options
author | Paolo Angelelli <paolo.angelelli@theqtcompany.com> | 2016-08-11 11:59:21 +0200 |
---|---|---|
committer | Paolo Angelelli <paolo.angelelli@theqtcompany.com> | 2016-08-26 14:05:56 +0000 |
commit | 832030f271105a96bdde70b0526df659f21de565 (patch) | |
tree | a75f5bd9e7e62635e360170a3228ca65eb10fdcc /src/plugins | |
parent | 9305015c3171dfe944e967081e879a365ca9a63f (diff) | |
download | qtlocation-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')
-rw-r--r-- | src/plugins/geoservices/mapbox/qgeotiledmappingmanagerenginemapbox.cpp | 6 | ||||
-rw-r--r-- | src/plugins/geoservices/nokia/qgeotiledmappingmanagerengine_nokia.cpp | 6 |
2 files changed, 6 insertions, 6 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); diff --git a/src/plugins/geoservices/nokia/qgeotiledmappingmanagerengine_nokia.cpp b/src/plugins/geoservices/nokia/qgeotiledmappingmanagerengine_nokia.cpp index 2ca5d7f1..8fcaba6a 100644 --- a/src/plugins/geoservices/nokia/qgeotiledmappingmanagerengine_nokia.cpp +++ b/src/plugins/geoservices/nokia/qgeotiledmappingmanagerengine_nokia.cpp @@ -95,11 +95,11 @@ QGeoTiledMappingManagerEngineNokia::QGeoTiledMappingManagerEngineNokia( types << QGeoMapType(QGeoMapType::CarNavigationMap, tr("Car Navigation Map"), tr("Normal map view in daylight mode for car navigation"), false, false, 21); setSupportedMapTypes(types); - int ppi = 250; + int ppi = 72; if (parameters.contains(QStringLiteral("here.mapping.highdpi_tiles"))) { const QString param = parameters.value(QStringLiteral("here.mapping.highdpi_tiles")).toString().toLower(); - if (param == "false") - ppi = 72; + if (param == "true") + ppi = 250; } QGeoTileFetcherNokia *fetcher = new QGeoTileFetcherNokia(parameters, networkManager, this, tileSize(), ppi); |