Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.13.1
-
None
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 } }