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

Offline maps not working with mapbox plugin

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.8.0 RC
    • 5.8.0 Beta
    • None

    Description

      Using mapbox plugin it is not possible to view maps offline. This due to incorrect filename parsing in qgeofiletilecachemapbox.cpp. If mapbox.map_id contains a period in value, empty QGeoTileSpec is returned

      QGeoTileSpec QGeoFileTileCacheMapbox::filenameToTileSpec(const QString &filename) const
      {
          QStringList parts = filename.split('.');
      
          if (parts.length() != 2)
              return QGeoTileSpec();
      

      According to MapBox documentation map id's shoud contain a period
      https://www.mapbox.com/help/define-map-id/

      With this Map plugin definition where the problem occurs:

              plugin: Plugin {
                  id: plugin
                  preferred: ["mapbox"]
                  PluginParameter { name: "mapbox.access_token"; value: <myaccesstoken> }
                  PluginParameter { name: "mapbox.map_id"; value: "project.handle" }
              }
      

      Attachments

        For Gerrit Dashboard: QTBUG-57011
        # Subject Branch Project Status CR V

        Activity

          People

            paangele Paolo Angelelli
            kamartti Katja Marttila
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes