[Android-development] Qt Location

Martin Kolman martin.kolman at gmail.com
Wed Aug 13 00:32:21 CEST 2014


12.8.2014 17:12, Blasche Alexander:
> Hi,
>
> QtLocation has not been released yet (although the QML API is frozen). That's why you cannot find any binaries for it. I haven't tested it myself on Android but I have heard from multiple sources that it is working. If you want to try it you have to compile it yourself. I suggest to try the Qt 5.4 version as it doesn't have the Qt3D dependency anymore.
>
> At the end of the day it still won't give you Google Maps. Googles T&Cs don't permit its integration. You may choose from OSM or Nokia maps.
> --
> Alex
I'll just note that there exists a simple QtQuick/Javascript only map 
element implementation, originally written for AGTL:
https://github.com/webhamster/advancedcaching/blob/master/advancedcaching/qml/PinchMap.qml

It is a simple map widget that uses open streetmap tiles by default and 
supports the usual operations like zoom in/out, pinch zoom, scale bar, 
centering, etc.
It has no external dependencies and can be easily extended. The above 
linked implementation is for QtQuick 1.0, but it is really easy to port 
it to QtQuick 2.0
and some project are already using it with QtQuick 2.0:
https://github.com/M4rtinK/modrana/blob/master/modules/gui_modules/gui_qt5/qml/PinchMap.qml
https://gitorious.org/foursail/foursail/source/826a6be5cd77547639b5caa02795e945f05657fc:qml/PinchMap.qml
^^^ this is probably the most standalone QtQuick 2.0 version that can be 
used as a drop-in element in basically any QtQuick app.

> ________________________________________
> From: android-development-bounces+alexander.blasche=digia.com at qt-project.org [android-development-bounces+alexander.blasche=digia.com at qt-project.org] on behalf of nicola at nicoladefilippo.it [nicola at nicoladefilippo.it]
> Sent: Tuesday, August 12, 2014 13:51
> To: android-development at qt-project.org
> Subject: [Android-development] Qt Location
>
> Hi,
> I need a map (google maps). First problem webkit isn’t on Android. Ok i
> try a other solution.
> I see https://github.com/otsaloma/poor-maps map app for sailfish. It use
> QtLocation 5. I see also Ubuntu touch example and it use QtLocation. Now,
> why haven’t Android and Ios this module?
> Must i to compile it?
>
>           BR
>             Nicola
>
> _______________________________________________
> Android-development mailing list
> Android-development at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/android-development
> _______________________________________________
> Android-development mailing list
> Android-development at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/android-development




More information about the Android-development mailing list