How to use Google Maps Native API with Qt/QML
-
wrote on 26 Jun 2015, 10:47 last edited by
Hi All,
I wonder if there is any way to use Native Google Maps API ( iOS/Android ) in Qt/QML?
I do not want to use a webview cause there is a request limit (2500 per day) for that.Thank you very much.
-
-
wrote on 27 Jun 2015, 10:52 last edited by UenX
Thank you for your suggestion.
I have checked it, but their module seems to use webview too.. -
wrote on 27 Jun 2015, 19:22 last edited by
Hi,
why you cannot use webview??
-
wrote on 28 Jun 2015, 04:18 last edited by
why you cannot use webview??
As I have mentioned, there is a usage limit for that method ( Maps JavaScript API v3 )
-
wrote on 28 Jun 2015, 09:55 last edited by mcosta
Hi,
to use "Native" API in QML you have to write your own component (as C++ plugin) and use in QML side.
It's pretty easy to write a component using iOS API (you can easily mix C++ and Objective-C code) and you'll find a lot of examples in the Qt docs and searching on the Internet.
About Android you should check if is possible to use Native API from NDK.What about to use https://developers.google.com/maps/documentation/webservices/ ?? For static Map the limit is 25000 requests/day
-
wrote on 29 Jun 2015, 02:03 last edited by
to use "Native" API in QML you have to write your own component (as C++ plugin) and use in QML side.
We have tried, but no use ( Cannot display native content and QML content at the same time )What about to use https://developers.google.com/maps/documentation/webservices/ ?? For static Map the limit is 25000 requests/day
25000 is nice, but it's still not enough for us. Actually we do not want any kind of usage limitation in our app.Anyway thank you for your suggestions.
-
wrote on 14 Jul 2015, 03:42 last edited by tmson87
@UenX said:
We have tried, but no use ( Cannot display native content and QML content at the same time )
Is there anyone who has successfully embed Google Map GMSMapView(iOS)/MapView(Android) into QML?
Maybe I implemented incorrectly but the C++ plugin does not work as expectation since it opens map in full-screen and lay on top all QML components.