diff options
author | Paolo Angelelli <paolo.angelelli@qt.io> | 2017-05-05 16:52:46 +0200 |
---|---|---|
committer | Jani Heikkinen <jani.heikkinen@qt.io> | 2017-05-08 08:58:10 +0000 |
commit | c598f11461a0791d1c5fccbf328b833722207ab0 (patch) | |
tree | 9098bf645f52db7f9bb6ee1e4b909b3334c01268 /src/plugins/geoservices/nokia | |
parent | d9a476f99216425ef3b76dfa054a9aab918b31be (diff) | |
download | qtlocation-c598f11461a0791d1c5fccbf328b833722207ab0.tar.gz |
Fix for mobile maps from the HERE plugin not showing in low-dpi
Apparently these maps support only 250ppi or more.
Task-number: QTBUG-60545
Change-Id: Iadb59c4f034cbfd94a825048358583f3a978315f
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'src/plugins/geoservices/nokia')
-rw-r--r-- | src/plugins/geoservices/nokia/qgeotilefetcher_nokia.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/plugins/geoservices/nokia/qgeotilefetcher_nokia.cpp b/src/plugins/geoservices/nokia/qgeotilefetcher_nokia.cpp index a55f71c0..d07a93ba 100644 --- a/src/plugins/geoservices/nokia/qgeotilefetcher_nokia.cpp +++ b/src/plugins/geoservices/nokia/qgeotilefetcher_nokia.cpp @@ -96,8 +96,15 @@ QGeoTiledMapReply *QGeoTileFetcherNokia::getTileImage(const QGeoTileSpec &spec) { // TODO add error detection for if request.connectivityMode() != QGraphicsGeoMap::OnlineMode int ppi = m_ppi; - if ((spec.mapId() == 2) || (spec.mapId() == 12) || (spec.mapId() == 21)) + if ((spec.mapId() == 2) || (spec.mapId() == 12) || (spec.mapId() == 21)) { ppi = 72; // HiDpi apparently not supported for these maps + } else if ((spec.mapId() >= 7 && spec.mapId() <= 11) + || (spec.mapId() == 14) + || (spec.mapId() == 16) + || (spec.mapId() == 18) + || (spec.mapId() == 20)) { + ppi = 250; // LoDpi apparently not supported for these maps + } QString rawRequest = getRequestString(spec, ppi); if (rawRequest.isEmpty()) { |