添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode . Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript). 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?

Pictures

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 }