Problem with Map and MapPolygon
-
Hi,
I have some problems with the QML Map. I want to display specific areas like airspaces. I figured out, that the MapPolygon, which was created for testing, is doing strange things (vertical cuts, disappearing), if I zoom in until its borders are no more part of the visible area of the map. I'm using v5.5.1 but could also reproduce it with v5.6. How can I avoid this?Codesnipped:
import QtQuick 2.0 import QtLocation 5.5 Item { height: 600 width: 800 anchors.centerIn: parent Plugin{ id: osmplugin name:"osm" } Map { width: parent.width height: parent.height plugin: osmplugin gesture.enabled: true id: map zoomLevel: (maximumZoomLevel - minimumZoomLevel)/2 center { latitude: 50.348888888888894 longitude: 10.918055555555554 } MapPolygon { color: "#550000FF" //Coburg - Germany path : [ { longitude: 10.918055555555554, latitude: 50.348888888888894 }, { longitude: 11.150833333333333, latitude: 50.2625 }, { longitude: 11.073333333333332, latitude: 50.17611111111111 }, { longitude: 10.840833333333334, latitude: 50.26222222222222 }, { longitude: 10.918055555555554, latitude: 50.348888888888894 } ] } } }
-
Hi, and welcome to the Qt forum!
I can confirm this behaviour with Qt 5.6.0 on x86_64 Linux with Nvidia graphics drivers. What is your platform?
-
@Wieland Thank you :) I've tested it on Windows 7 x86 64. Tomorrow I will check this on armhf with mali, but I'm not very optimistic :/ Any ideas, how to clean up the situation?
-
You can file a bugreport here: bugreports.qt.io
-
@Wieland
Thank you for testing :)
I've done a bugreport: https://bugreports.qt.io/browse/QTBUG-53046