Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-120251

MapBox Plugin Not Work

    XMLWordPrintable

Details

    • Linux/Wayland

    Description

      Hi,

      I was planning to show a map using MapBox Plugin in my application but I couldn't do it.
      I think the MapBox Company has changed the url definitions they use to request map data.

      I get the following error on the Application Output screen:
      I replaced my token -> xxx

      Warning: QGeoTileRequestManager: Failed to fetch tile (309509,198555,19) 5 times, giving up. Last error message was: 'Error transferring https://api.tiles.mapbox.com/v4/mapbox.streets/19/309509/198555.png?access_token=xxx - server replied: Gone' (:0, )

       

      When I click on the link in the error line, the browser says:

      {"message":"Classic styles are no longer supported; see https://blog.mapbox.com/deprecating-studio-classic-styles-d8892ac38cb4 for more information"}

       

      I am using this code : https://doc.qt.io/qt-6/qtlocation-minimal-map-example.html

      I tried this code with Qt 5.15.2 and 6.6.1. It works with Here and OSM but MapBox gives the same error in both versions.

      Here are the current URL definitions of MapBox: https://docs.mapbox.com/api/maps/static-tiles/

      Here is a current working example link for MapBox:

      https://api.mapbox.com/styles/v1/mapbox/streets-v12/tiles/19/309509/198555?access_token=xxx

      Please fix it. 
      Thanks.

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            paangele Paolo Angelelli
            osos11 Alperen UNAL
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes