MapViewer: Cannot fetch map tile
-
Hi, Im running MapViewer example and the map is not shown.
The error message is:
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'
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.
-
I think you answered your own question. If you don't have OSM access then you don't
-
I think you answered your own question. If you don't have OSM access then you don't
@Kent-Dorfman with a VPN, i can open the OSM web page. I just dont know how to configure osm plugin to use VPN.
-
@dalishi said in MapViewer: Cannot fetch map tile:
Returns a definition for a tile provide that is explicitly disabled.
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" : "<a href='http://basemap.nationalmap.gov/arcgis/rest/services/USGSImageryOnly/MapServer'>USGS The National Map: Orthoimagery</a>", "DataCopyRight" : "<a href='http://landsat.gsfc.nasa.gov/?page_id=2339'>USGS/NASA Landsat</a>" }
Presumably this was disabled by the Qt crowd for a reason (probably asked to). The URL template does not look like OSM. Nevertheless, the URL template does actually return data:
https://basemap.nationalmap.gov/arcgis/rest/services/USGSImageryOnly/MapServer/tile/8/136/74
I think the question is more, "How do I define a provider to a tile server I can use?"