How to use Google Maps Native API with Qt/QML
-
why you cannot use webview??
As I have mentioned, there is a usage limit for that method ( Maps JavaScript API v3 )
-
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
-
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.
-
@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.