<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[MapViewer: Cannot fetch map tile]]></title><description><![CDATA[<p dir="auto">Hi, Im running MapViewer example and the map is not shown.</p>
<p dir="auto"><img src="https://ddgobkiprc33d.cloudfront.net/9ec7e579-4b29-45c3-b987-721d359b8058.png" alt="Screenshot from 2023-01-01 18-47-03.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">The error message is:</p>
<pre><code>QML debugging is enabled. Only use this in a safe environment.
QGeoTileProviderOsm: Tileserver disabled at  QUrl("http://maps-redirect.qt.io/osm/5.8/satellite")
QGeoTileFetcherOsm: all providers resolved
QGeoTileRequestManager: Failed to fetch tile (136,74,8) 5 times, giving up. Last error message was: 'Connection closed'
QGeoTileRequestManager: Failed to fetch tile (135,73,8) 5 times, giving up. Last error message was: 'Connection closed'
QGeoTileRequestManager: Failed to fetch tile (135,74,8) 5 times, giving up. Last error message was: 'Connection closed'
QGeoTileRequestManager: Failed to fetch tile (136,73,8) 5 times, giving up. Last error message was: 'Connection closed'
QGeoTileRequestManager: Failed to fetch tile (134,74,8) 5 times, giving up. Last error message was: 'Connection closed'
QGeoTileRequestManager: Failed to fetch tile (134,73,8) 5 times, giving up. Last error message was: 'Connection closed'
QGeoTileRequestManager: Failed to fetch tile (135,75,8) 5 times, giving up. Last error message was: 'Connection closed'
QGeoTileRequestManager: Failed to fetch tile (134,75,8) 5 times, giving up. Last error message was: 'Connection closed'
QGeoTileRequestManager: Failed to fetch tile (136,75,8) 5 times, giving up. Last error message was: 'Connection closed'
</code></pre>
<p dir="auto">OSM server might be blocked in my place and i'm using a VPN server. How should I configure this to show the map correctly? Thanks.</p>
]]></description><link>https://forum.qt.io/topic/141866/mapviewer-cannot-fetch-map-tile</link><generator>RSS for Node</generator><lastBuildDate>Mon, 15 Jun 2026 02:03:58 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/141866.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 01 Jan 2023 10:48:51 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to MapViewer: Cannot fetch map tile on Wed, 04 Jan 2023 07:17:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dalishi">@<bdi>dalishi</bdi></a> said in <a href="/post/742095">MapViewer: Cannot fetch map tile</a>:</p>
<blockquote>
<p dir="auto"><a href="http://maps-redirect.qt.io/osm/5.8/satellite" target="_blank" rel="noopener noreferrer nofollow ugc">http://maps-redirect.qt.io/osm/5.8/satellite</a></p>
</blockquote>
<p dir="auto">Returns a definition for a tile provide that is explicitly disabled.</p>
<pre><code>chrisw@newton:/tmp$ curl http://maps-redirect.qt.io/osm/5.8/satellite
{
    "Enabled" : false,
    "UrlTemplate" : "http://basemap.nationalmap.gov/arcgis/rest/services/USGSImageryOnly/MapServer/tile/%z/%y/%x",
    "ImageFormat" : "jpg",
    "QImageFormat" : "RGB888",
    "ID" : "usgs-l7",
    "MaximumZoomLevel" : 8,
    "MapCopyRight" : "&lt;a href='http://basemap.nationalmap.gov/arcgis/rest/services/USGSImageryOnly/MapServer'&gt;USGS The National Map: Orthoimagery&lt;/a&gt;",
    "DataCopyRight" : "&lt;a href='http://landsat.gsfc.nasa.gov/?page_id=2339'&gt;USGS/NASA Landsat&lt;/a&gt;"
}
</code></pre>
<p dir="auto">Presumably this was <a href="https://doc.qt.io/qt-5/location-plugin-osm.html" target="_blank" rel="noopener noreferrer nofollow ugc">disabled by the Qt crowd for a reason</a> (probably asked to).  The URL template does not look like OSM.  Nevertheless, the URL template does actually return data:</p>
<pre><code>https://basemap.nationalmap.gov/arcgis/rest/services/USGSImageryOnly/MapServer/tile/8/136/74
</code></pre>
<p dir="auto"><img src="https://ddgobkiprc33d.cloudfront.net/21b573ce-0d80-4687-b143-3b5b0dde8942.png" alt="148cc65b-c082-4d16-b800-50e9500fb6be-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">I think the question is more, "How do I define a provider to a tile server I can use?"</p>
]]></description><link>https://forum.qt.io/post/742413</link><guid isPermaLink="true">https://forum.qt.io/post/742413</guid><dc:creator><![CDATA[ChrisW67]]></dc:creator><pubDate>Wed, 04 Jan 2023 07:17:49 GMT</pubDate></item><item><title><![CDATA[Reply to MapViewer: Cannot fetch map tile on Wed, 04 Jan 2023 06:59:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kent-dorfman">@<bdi>Kent-Dorfman</bdi></a> with a VPN, i can open the OSM web page. I just dont know how to configure osm plugin to use VPN.</p>
]]></description><link>https://forum.qt.io/post/742410</link><guid isPermaLink="true">https://forum.qt.io/post/742410</guid><dc:creator><![CDATA[dalishi]]></dc:creator><pubDate>Wed, 04 Jan 2023 06:59:18 GMT</pubDate></item><item><title><![CDATA[Reply to MapViewer: Cannot fetch map tile on Wed, 04 Jan 2023 02:30:07 GMT]]></title><description><![CDATA[<p dir="auto">I think you answered your own question.  If you don't have OSM access then you don't</p>
]]></description><link>https://forum.qt.io/post/742396</link><guid isPermaLink="true">https://forum.qt.io/post/742396</guid><dc:creator><![CDATA[Kent-Dorfman]]></dc:creator><pubDate>Wed, 04 Jan 2023 02:30:07 GMT</pubDate></item></channel></rss>