Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix: correct urls to ones which are currently available. This is bad …
…form, but this plugin is way dated
  • Loading branch information
poetaster committed May 24, 2023
1 parent ad5bdcd commit 0bd5646
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/plugins/geoservices/osm/qgeotilefetcherosm.cpp
Expand Up @@ -59,17 +59,17 @@ QGeoTiledMapReply *QGeoTileFetcherOsm::getTileImage(const QGeoTileSpec &spec)
switch (spec.mapId()) {
case 1:
// opensteetmap.org street map
request.setUrl(QUrl(QStringLiteral("http://otile1.mqcdn.com/tiles/1.0.0/map/") +
request.setUrl(QUrl(QStringLiteral("http://korona.geog.uni-heidelberg.de/tiles/roads/") +
QString::number(spec.zoom()) + QLatin1Char('/') +
QString::number(spec.x()) + QLatin1Char('/') +
QString::number(spec.y()) + QStringLiteral(".png")));
QString::number(spec.y()) + QStringLiteral(".jpg")));
break;
case 2:
// opensteetmap.org satellite map
request.setUrl(QUrl(QStringLiteral("http://otile1.mqcdn.com/tiles/1.0.0/sat/") +
request.setUrl(QUrl(QStringLiteral("http://basemap.nationalmap.gov/arcgis/rest/services/USGSImageryOnly/MapServer/tile/") +
QString::number(spec.zoom()) + QLatin1Char('/') +
QString::number(spec.x()) + QLatin1Char('/') +
QString::number(spec.y()) + QStringLiteral(".png")));
QString::number(spec.y()) + QStringLiteral(".jpg")));
break;
default:
qWarning("Unknown map id %d\n", spec.mapId());
Expand Down

0 comments on commit 0bd5646

Please sign in to comment.