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

QML Map resize height

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.14.0
    • None
    • Windows

    Description

      When resizing the main window height, the Map is well resized due to anchoring, but

      MapItems (i.e. MapCircle)  doesn't keep their position to fixed coordonates.

      Resizing horizontally is working correctly.

      Can be reproduced with this small example (from minimal_map.qml)

      import QtQuick 2.0
      import QtQuick.Window 2.0
      import QtLocation 5.6
      import QtPositioning 5.6
      
      Window {
       width: 512
       height: 512
       visible: true
      
      Plugin {
       id: mapPlugin
       name: "osm"
       }
      
      MapCircle{
       id : target
       center: cityMap.center
       radius: 50
       color: "red"
       }
      
      Map {
       id : cityMap
       anchors.fill: parent
       plugin: mapPlugin
       center: QtPositioning.coordinate(59.91, 10.75) // Oslo
       zoomLevel: 14
       Component.onCompleted: addMapItem(target)
       }
      }
      

      Attachments

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

        Activity

          People

            paangele Paolo Angelelli
            mani ROUAULT GUY
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes