load gps map view
I'm trying to find a way to load a map on my application but I can't find even one good source to give me a head start!
QtLocation in qt5 is limited to QtPosition. most of it's useful libraries are gone! and it's not help me for loading graphical map.
I tried to add QtLocation module to qt5 but I get errors every times. I'm using qt5.3 with ubuntu 14.04.
thanks in advices.
Doesn't the "Map Viewer":http://doc.qt.io/qt-5/qtlocation-mapviewer-example.html example show what you want ?
Yes this is what I need.
But as far as I know QtLocation removed from qt5 and this example used Qtlocation.
Can I compile this example under qt5.3?
And another question.
Is there a c++, not QML example for this?
It's an example from the Qt 5 QtLocation module
you are righ dear SGiast.
and it's a good one. but I'm not really good at QML.
a c++ example will really help.
hi jerome. yes you are right but I did this before and I faced a problem. I need to load map offline and as far as I know by that way I can't save map tiles. so it will not solve my problem.
A basic C++ example:
realy nice ! thanks a lot.
this is what I need!
This post is deleted!
I used an example from QT which is mapviewer in QT 5.6 but it is not working.
I mean I can't load a route if I enter a fromLatitude , fromLongitude, toLatitude and toLongitude.
I added logs and I see that the status of my routeModel is not ready but error and exactly undefined error.
I am working on ubuntu 14.04.
Do you have same problem than me ?
If I look on the application output, I can see 2 warnings but I am not sure it is the cause :
-qt.network.ssl: QSslSocket: cannot resolve SSLv2_client_method
-qt.network.ssl: QSslSocket: cannot resolve SSLv2_server_method
Do you think it could be the cause of the error ? If Yes, how to correct it ? Perhaps it is a problem with a proxy ?
Thank you in advance for your answer.