How to integrate Google Maps?
-
wrote on 6 Mar 2017, 15:43 last edited by
@ekkescorner , I have just using googleMaps plugins that @vladstelmahovsky suggest ( https://github.com/vladest/googlemaps ), at first time, it work quite well, thanks for all support.
-
@ekkescorner , I have just using googleMaps plugins that @vladstelmahovsky suggest ( https://github.com/vladest/googlemaps ), at first time, it work quite well, thanks for all support.
@kd_wala thx letting us know that it works
-
@ekkescorner , I have just using googleMaps plugins that @vladstelmahovsky suggest ( https://github.com/vladest/googlemaps ), at first time, it work quite well, thanks for all support.
wrote on 30 Mar 2017, 09:15 last edited by@kd_wala
Could you explain how that plugin is installed?
And how you implement it from QML?
Thank you very much. -
wrote on 30 Mar 2017, 09:58 last edited by
@carles-sole-grau , When you done clone & build plugin, you should create folder 'geoservices' in same folder of file execute, then copy plugin into this 'geoservices' folder
You can see struct plugins in folder ( that why we have name 'geoservices') where you install Qt ex: '~/Qt5.8.0/5.8/gcc_64/plugins/ (I using Ubuntu & Qt5.8)
on QML you do like this:
Plugin {
id: mapPlugin
name: "googlemaps"
}for tutorial how plugin, refer to example : http://doc.qt.io/qt-5/qtwidgets-tools-styleplugin-example.html
for detail refer to doc: http://doc.qt.io/qt-5/plugins-howto.html -
wrote on 19 Apr 2017, 08:03 last edited by
Build instruction:
1-Open project using QtCreator
2-Choose proper Build Kit and profile (for example debug profile)
3-Copy files manually or use terminal and run this command:make -f Makefile.Debug install
ormake -f Makefile.Release install
if you choose release profile for building plugin.
4-Use plugin by settinggooglemaps
asname
property of the Plugin Item. (for more information about using QtLocation and QtPositioning refer to Qt official documentation) -
wrote on 20 Apr 2017, 10:24 last edited by Talkless
@kd_wala I doubt using that QtLocation plugin can be considered legal, by the Terms and Conditions of Google Maps.
There was a dissucsion about using Google Maps not through their API's (JS, Java?), which looks like is not allowed. See comment:
https://bugreports.qt.io/browse/QTBUG-27304?focusedCommentId=300663&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-300663Alternative is to use QtWebView and control official web-based Goole Maps through QtWebChannel, by creating JavaScript webocket connection from within WebView to your app.
Or, create QtWebView-like wrapper for native Java Gogole Maps components, just like QtWebView creates and manages native web view on different mobile OSes. There are limitations of course, as QML components will not be able to overdraw on top of these native components.
-
wrote on 8 Aug 2017, 14:29 last edited by
@vladstelmahovsky can you tell me how to use the Geocode option? I need to be able to enter a postcode and then set the long and lat to that location
-
@vladstelmahovsky can you tell me how to use the Geocode option? I need to be able to enter a postcode and then set the long and lat to that location
wrote on 8 Aug 2017, 15:15 last edited by@joshmarshall95 just like any other QtLocation geocode API
-
@joshmarshall95 just like any other QtLocation geocode API
wrote on 24 Aug 2017, 07:44 last edited by@vladstelmahovsky
hi,
thank you very much indeed ...
how to set traffic layer in the map? -
@vladstelmahovsky
hi,
thank you very much indeed ...
how to set traffic layer in the map?wrote on 24 Aug 2017, 08:08 last edited by@bahman309 I suppose as MapPolyline's if you have geo coordinates of traffic
-
@bahman309 I suppose as MapPolyline's if you have geo coordinates of traffic
wrote on 24 Aug 2017, 08:36 last edited by@vladstelmahovsky
I want to use google traffic service -
@vladstelmahovsky
I want to use google traffic servicewrote on 24 Aug 2017, 08:38 last edited by@bahman309 I'm not aware about the service, sorry
-
@bahman309 I'm not aware about the service, sorry
wrote on 24 Aug 2017, 08:43 last edited by@vladstelmahovsky
thank you... -
wrote on 25 Aug 2017, 05:42 last edited by
anybody used googlemaps plugin?
anybody used navigation or traffic in QML? -
wrote on 25 Aug 2017, 09:39 last edited by
anybody can to used google map api in QML
and used navigation and traffic from google map api ? -
anybody can to used google map api in QML
and used navigation and traffic from google map api ?wrote on 31 Aug 2017, 12:17 last edited by@bahman309 there is no traffic data API in QtLocation yet. and Navigation is in progress, afaik
-
wrote on 6 Dec 2017, 16:02 last edited by
how to enable the satellite view in your plugin ?
thx -
@carles-sole-grau , When you done clone & build plugin, you should create folder 'geoservices' in same folder of file execute, then copy plugin into this 'geoservices' folder
You can see struct plugins in folder ( that why we have name 'geoservices') where you install Qt ex: '~/Qt5.8.0/5.8/gcc_64/plugins/ (I using Ubuntu & Qt5.8)
on QML you do like this:
Plugin {
id: mapPlugin
name: "googlemaps"
}for tutorial how plugin, refer to example : http://doc.qt.io/qt-5/qtwidgets-tools-styleplugin-example.html
for detail refer to doc: http://doc.qt.io/qt-5/plugins-howto.html