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

MapQuickItem disappears when zooming close to it with tilted camera

    XMLWordPrintable

Details

    Description

      Start the following sample and begin zooming out from the center. At some point the red rectangle appears.

      import QtQuick 2.7
      import QtQuick.Window 2.2
      import QtQuick.Controls 1.4
      import QtPositioning 5.6
      import QtLocation 5.9
      import LocationComponents 1.0
      Window {
          id: win
          visible: true
          width: 640
          height: 640
      
          Map {
              id: map
              anchors.fill: parent
              plugin: Plugin { name: "osm" }
              center: QtPositioning.coordinate(18.859820495687384, 50.164062499994515)
              zoomLevel: 18.0
              tilt: 70
              bearing: 180
              fieldOfView: 90
      
              MapQuickItem {
                  id: mqi
                  zoomLevel: 1.32
                  anchorPoint.x: sourceItem.width / 2
                  anchorPoint.y: sourceItem.height / 2
                  coordinate: QtPositioning.coordinate(19,50)
      
                  sourceItem: Rectangle{
                      width:40
                      height:40
                      color:'red'
      
                      MouseArea{
                          anchors.fill: parent
                          drag.target: mqi
                      }
                  }
              }
          }
      }
      

      Attachments

        For Gerrit Dashboard: QTBUG-59397
        # Subject Branch Project Status CR V

        Activity

          People

            paangele Paolo Angelelli
            paangele Paolo Angelelli
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes