summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaolo Angelelli <paolo.angelelli@theqtcompany.com>2016-08-01 21:45:09 +0200
committerPaolo Angelelli <paolo.angelelli@theqtcompany.com>2016-08-05 08:54:16 +0000
commit963fe911fb16d4e6dd184704351b4a488c41be24 (patch)
tree0d9cc6fcabeb5c2a602f54abf6174aa1b2898c9c
parent785cf59d53a4005ef46f6d75a31ce6edce38b5e1 (diff)
Add HighDpi support for OpenStreetMap
This patch changes the osm providers repository to /osm/5.8/ where a provider with @2x tiles is used for the street style Change-Id: I9b2cd9e8f385506d153b9c430c1f99f7f6e7946c Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
-rw-r--r--src/plugins/geoservices/osm/qgeotiledmappingmanagerengineosm.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/geoservices/osm/qgeotiledmappingmanagerengineosm.cpp b/src/plugins/geoservices/osm/qgeotiledmappingmanagerengineosm.cpp
index b87c4020..4f25204a 100644
--- a/src/plugins/geoservices/osm/qgeotiledmappingmanagerengineosm.cpp
+++ b/src/plugins/geoservices/osm/qgeotiledmappingmanagerengineosm.cpp
@@ -62,10 +62,10 @@ QGeoTiledMappingManagerEngineOsm::QGeoTiledMappingManagerEngineOsm(const QVarian
setTileSize(QSize(256, 256));
QNetworkAccessManager *nm = new QNetworkAccessManager();
- QString domain = QStringLiteral("http://maps-redirect.qt.io/osm/5.6/");
+ QString domain = QStringLiteral("http://maps-redirect.qt.io/osm/5.8/");
if (parameters.contains(QStringLiteral("osm.mapping.providersrepository.address"))) {
QString customAddress = parameters.value(QStringLiteral("osm.mapping.providersrepository.address")).toString();
- // Allowing some malformed addresses ( containing the suffix "/osm/5.6/"
+ // Allowing some malformed addresses
if (customAddress.indexOf(QStringLiteral(":")) < 0) // defaulting to http:// if no prefix is found
customAddress = QStringLiteral("http://") + customAddress;
if (customAddress[customAddress.length()-1] != QLatin1Char('/'))