Mapping with QML



  • 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?



  • [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@



  • 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...



  • 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.



  • 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?



  • 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.



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

    Kyle





  • 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?



  • 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.



  • 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...?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.