Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Problem with Map and MapPolygon
Forum Updated to NodeBB v4.3 + New Features

Problem with Map and MapPolygon

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
qmlquickmapmappolygonlocation
6 Posts 2 Posters 2.8k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • MiimeM Offline
    MiimeM Offline
    Miime
    wrote on last edited by Miime
    #1

    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?

    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 }
                ]
            }
        }
    }
    
    
    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      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?

      MiimeM 1 Reply Last reply
      0
      • ? A Former User

        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?

        MiimeM Offline
        MiimeM Offline
        Miime
        wrote on last edited by
        #3

        @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?

        ? 1 Reply Last reply
        0
        • MiimeM Miime

          @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?

          ? Offline
          ? Offline
          A Former User
          wrote on last edited by
          #4

          @Miime said:

          Any ideas, how to clean up the situation?

          No, sry. My hope was that we could blame the Nvidia drivers (again).

          1 Reply Last reply
          0
          • ? Offline
            ? Offline
            A Former User
            wrote on last edited by
            #5

            You can file a bugreport here: bugreports.qt.io

            MiimeM 1 Reply Last reply
            1
            • ? A Former User

              You can file a bugreport here: bugreports.qt.io

              MiimeM Offline
              MiimeM Offline
              Miime
              wrote on last edited by
              #6

              @Wieland
              Thank you for testing :)
              I've done a bugreport: https://bugreports.qt.io/browse/QTBUG-53046

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved