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

Unable to set retina format in mapbox

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.7.0
    • Fix Version/s: 5.8.0 Alpha
    • Labels:
      None
    • Environment:
      all

      Description

      I'm using mapbox as source of tiles in my map component which is working fine, however when I try to set the retina prefix it prints out an error message:

      Unknown map format "@2x.png"

          Plugin {
              id: mapPlugin
              name: "mapbox"
      
              PluginParameter {
                  name: "mapbox.map_id"
                  value: "mapbox.streets"
              }
      
              PluginParameter {
                  name: "mapbox.access_token"
                  value: "xxx"
              }
      
              PluginParameter {
                  name: "mapbox.format"
                  value: "@2x.png"
              }
          }
      

      The way the format parameter is working right now in Qt is related with the "image format" rather than representing the "format" itself which allows to have the dpi version as prefix and the image format as suffix.

      Mapbox's api documentation about it:

      https://www.mapbox.com/api-documentation/#retina
      and
      https://www.mapbox.com/api-documentation/#retrieve-tiles

        Attachments

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

          Activity

            People

            Assignee:
            paangele Paolo Angelelli
            Reporter:
            eptin Paulo
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes