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

Overlay drawing errors with Mapbox GL during zooming

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.13.1
    • None
    • All

    Description

      Lines are distorted at some zoom levels when drawing line overlays with the Mapbox GL.

      import QtQuick 2.10
      import QtQuick.Controls 2.10
      
      import QtLocation 5.11
      import QtPositioning 5.6
      
      ApplicationWindow {
          visible: true
          width: 640
          height: 480
          title: qsTr("Mapbox Overlays")
      
          Map {
              id: map
              anchors.fill: parent
      
              gesture.acceptedGestures: MapGestureArea.PanGesture | MapGestureArea.FlickGesture | MapGestureArea.PinchGesture | MapGestureArea.RotationGesture | MapGestureArea.TiltGesture
              gesture.flickDeceleration: 3000
              gesture.enabled: true
      
              center: QtPositioning.coordinate(-27, 153)
      
              plugin: Plugin {
                  name: "mapboxgl"
      
                  /*
                      PluginParameter {
                          name: "mapboxgl.mapping.use_fbo"
                          value: false
                      }*/
              }
      
              DynamicParameter {
                  type: 'paint'
                  property var layer: 'QtLocation-polyDashed'
                  property var lineWidth: 10
                  property var lineColor: 'white'
                  property var lineDasharray: [0, 2] // dashes
              }
      
              DynamicParameter {
                  type: 'layout'
                  property var layer: 'QtLocation-polyDashed'
                  property var lineCap: "round"
              }
      
      
              MapPolyline {
                  objectName: 'polyDashed'
                  id: poly
                  line.width: 10
                  line.color: 'deepskyblue'
      
                  path: [
                      { latitude: -27, longitude: 153.0 },
                      { latitude: -27, longitude: 154.1 },
                      { latitude: -28, longitude: 153.5 },
                      { latitude: -29, longitude: 153.4 }
                  ]
              } // MapPolyline
          }
      }
      
      

      Attachments

        1. img3.png
          img3.png
          19 kB
        2. img2.png
          img2.png
          17 kB
        3. img1.png
          img1.png
          54 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            tmpsantos Thiago Marcos P. Santos
            DanielSt Peter Staab
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes