Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. MapViewer: Cannot fetch map tile
Forum Updated to NodeBB v4.3 + New Features

MapViewer: Cannot fetch map tile

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 1.6k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dalishi
    wrote on last edited by dalishi
    #1

    Hi, Im running MapViewer example and the map is not shown.

    Screenshot from 2023-01-01 18-47-03.png

    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.

    1 Reply Last reply
    0
    • Kent-DorfmanK Offline
      Kent-DorfmanK Offline
      Kent-Dorfman
      wrote on last edited by
      #2

      I think you answered your own question. If you don't have OSM access then you don't

      I light my way forward with the fires of all the bridges I've burned behind me.

      D 1 Reply Last reply
      0
      • Kent-DorfmanK Kent-Dorfman

        I think you answered your own question. If you don't have OSM access then you don't

        D Offline
        D Offline
        dalishi
        wrote on last edited by
        #3

        @Kent-Dorfman with a VPN, i can open the OSM web page. I just dont know how to configure osm plugin to use VPN.

        1 Reply Last reply
        0
        • C Offline
          C Offline
          ChrisW67
          wrote on last edited by ChrisW67
          #4

          @dalishi said in MapViewer: Cannot fetch map tile:

          http://maps-redirect.qt.io/osm/5.8/satellite

          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
          

          148cc65b-c082-4d16-b800-50e9500fb6be-image.png

          I think the question is more, "How do I define a provider to a tile server I can use?"

          1 Reply Last reply
          1

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved