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

Map items (e.g. MapCircle) don't render properly when they wrap around the left/right edge of the screen

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.12.6, 5.14.1
    • Location
    • None

    Description

      At low zoom levels, if I have an item that is clipped off of the right edge of the screen, it should wrap around and be shown on the right side as well. However, it does not, and it only shows up on the left edge of the screen if you pan the map far enough that it is fully off of the right side. This is particularly obvious when you have geometry (e.g. MapPolyline) that covers a large geographic region, causing large parts of the item to disappear and then suddenly appear again as you pan.

      This simple QML file demonstrates it:

      import QtQuick 2.0
      import QtQuick.Window 2.0
      import QtLocation 5.14
      import QtPositioning 5.14
      
      Window {
          width: 512
          height: 512
          visible: true    
          Plugin {
              id: mapPlugin
              name: "osm"
          }    
          Map {
              anchors.fill: parent
              plugin: mapPlugin
              center: QtPositioning.coordinate(0, 0)
              zoomLevel: 1        
              MapCircle {
                  autoFadeIn: false
                  center {
                      latitude: -27.5
                      longitude: 153.0
                  }
                  radius: 5000000.0
                  color: 'green'
                  border.width: 3
              }
          }
      }
      
      

      See the two attached screenshots for what this example looks like. In the first one, I should see the other half of the circle on the left of the map.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

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

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes