Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Mapping with QML
Forum Update on Monday, May 27th 2025

Mapping with QML

Scheduled Pinned Locked Moved QML and Qt Quick
11 Posts 4 Posters 6.2k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kyleplattner
    wrote on last edited by
    #1

    If I wanted to build a mapping program that maps the speed of a vehicle by "bread-crumbing" different color values corresponding to differing speeds based on gps coordinates, would it be best to use a plugin like QMLCanvas and just try to figure out a way to paint data on the map, or would something like the Location API in Qt work better? Or another tool?

    Does the Location API work with normal lat/lon coordinates?

    1 Reply Last reply
    0
    • B Offline
      B Offline
      blex
      wrote on last edited by
      #2

      [quote author="kyleplattner" date="1290204094"]Does the Location API work with normal lat/lon coordinates? [/quote]

      Seems like "yes". What is "normal?"

      @double QGeoCoordinate::latitude () const
      double QGeoCoordinate::longitude () const
      QString QGeoCoordinate::toString ( CoordinateFormat format = DegreesMinutesSecondsWithHemisphere ) const@


      Oleksiy Balabay

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mutaphysis
        wrote on last edited by
        #3

        You can always look at the definition of the "qml location api":http://doc.qt.nokia.com/qt-mobility-snapshot/qml-location-plugin.html#map-elements

        Or at the "Map example":http://doc.qt.nokia.com/qt-mobility-snapshot/declarative-location-mapviewer-mapviewer-qml.html

        Lat/lon look 'normal' enough to me...

        1 Reply Last reply
        0
        • D Offline
          D Offline
          dalaing
          wrote on last edited by
          #4

          We've got basic QML bindings for Maps and Location, although the Maps bindings are only provisional at the moment. Hopefully we'll have the new ones done and in the git repository before too long.

          David Laing
          Location API team
          Qt Mobility

          1 Reply Last reply
          0
          • K Offline
            K Offline
            kyleplattner
            wrote on last edited by
            #5

            What will the "new ones" allow me to do?

            How would I go about taking values that correspond to lat/lon coordinates and mapping them out on a canvas?

            1 Reply Last reply
            0
            • D Offline
              D Offline
              dalaing
              wrote on last edited by
              #6

              The new bindings would mostly be helpful when it came to drawing on street or satellite map. It also does things like coordinate to screen position conversions (in both directions), although those are specific to the mapping plugin that you're using.

              If you have no interest in street / satellite maps and are just drawing GPS positions on the screen then the new bindings probably won't be that interesting to you. In that case the PositionSource element is probably all you'd need from the Qt Mobility side.

              David Laing
              Location API team
              Qt Mobility

              1 Reply Last reply
              0
              • K Offline
                K Offline
                kyleplattner
                wrote on last edited by
                #7

                I am new to the SDK, how can I get the QtMobility.location 1.1 plugin installed on OS X? Thanks,

                Kyle

                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  mutaphysis
                  wrote on last edited by
                  #8

                  You can find more on this "thread":http://developer.qt.nokia.com/forums/viewthread/1561/#7881

                  1 Reply Last reply
                  0
                  • K Offline
                    K Offline
                    kyleplattner
                    wrote on last edited by
                    #9

                    Is the SatelliteMapDay map available through QML yet?

                    Is it possible to get rid of the watermark in the lower left?

                    Can I access the 3D mode used in many mapping programs?

                    1 Reply Last reply
                    0
                    • D Offline
                      D Offline
                      dalaing
                      wrote on last edited by
                      #10

                      Is the SatelliteMapDay map available through QML yet?

                      Not yet but we're working on it.

                      Is it possible to get rid of the watermark in the lower left?

                      No, and trying to do so yourself would mean you're in violation of the terms of service associated with the plugin. If you really have to not have the watermark I can dig up an email address and you can negotiate a price with the mapping service people for unwatermarked access.

                      Can I access the 3D mode used in many mapping programs?

                      No. Maybe in the future, although we've got much more important stuff on the near term radar.

                      David Laing
                      Location API team
                      Qt Mobility

                      1 Reply Last reply
                      0
                      • K Offline
                        K Offline
                        kyleplattner
                        wrote on last edited by
                        #11

                        I would be interested in the email address you referenced.

                        I know it will be a guess but do you suppose you will release the 3D mode in 6 months, a year, 3 years...?

                        1 Reply Last reply
                        0

                        • Login

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • Users
                        • Groups
                        • Search
                        • Get Qt Extensions
                        • Unsolved