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

Assigning coordinates to `Map.center` ignores latitude

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.7.0
    • Fix Version/s: 5.7.1
    • Labels:
      None
    • Environment:
      Qt 5.7 x64
      Windows 10

      Description

      I've tried to set Map.center in 2 different ways:

      1.

      Map {
          center: QtPositioning.coordinate(55.7512, 37.6175)
          Component.onCompleted: {
              console.log(map.center);
          }
      }
      

      The output was:

      qml: 0° 0' 0.0", 37° 37' 3.0" E

      It looks that assigning coordinates in this way ignores latitude.

      2.

       Map {
          center {
              latitude: 55.7512
              longitude: 37.6175
          }
          Component.onCompleted: {
              console.log(map.center);
          }
      }
      

      The output was:

      qml: 55° 45' 4.3" N, 37° 37' 3.0" E

      So assigning coordinates in this way works w/o problems.

        Attachments

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

          Activity

            People

            Assignee:
            paangele Paolo Angelelli
            Reporter:
            folibis ruslan
            Votes:
            5 Vote for this issue
            Watchers:
            7 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes