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

Assigning coordinates to `Map.center` ignores latitude

    XMLWordPrintable

Details

    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

            paangele Paolo Angelelli
            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