How to use Nokia maps offline with QtMobility!
Hi all,
I want to know if it's possible to write a Qt-base app for symbian phones which uses devices integrated Nokia maps.
The ecaxtly environment is:
Device: Nokia N95 8GB, Symbian 9.2 3rd edition, FP1
Device supports: Qt 4.6.3 and QtMobility 1.0.2
Developing under w2k, SP2.
Now there are a lot of examples exists like flicker (QtMobility 1.0.2), lightmaps (QtMobility 1.0.2), maps (QtMobility 1.2).
But the "flicker" and "lightmaps" uses maps from internet (OpenStreetMap, GoogleMap). And the "maps" uses a so called plugin for accesing local downloaded maps on device (that's what I want!).
The bad thing:
"maps" uses QtMobility 1.2 and QML - both are not supported from my device above.
My fundamental question is:
Is it generally possible to write an app to use local Nokia maps within my app with Qt 4.6.3 and QtMobility 1.0.2?
Thanks a lot.
Re: How to use Nokia maps offline with QtMobility!
Can you provide a link to this "maps" example that uses offline data? I haven't seen it.
Re: How to use Nokia maps offline with QtMobility!
The location API is in Qt Mobility since 1.0 so provided you have a plugin for accessing offline data, you should be able to use it with mobility 1.0.2 (after compiling it against 1.0.2, of course). All that if you have that plugin.
Re: How to use Nokia maps offline with QtMobility!
Quote:
Originally Posted by
wysota
The location API is in Qt Mobility since 1.0 so provided you have a plugin for accessing offline data, you should be able to use it with mobility 1.0.2 (after compiling it against 1.0.2, of course). All that if you have that plugin.
What's the name of the plugin? How I can use it? Any examples existing?
The example "maps" of QtMobility 1.1.2 uses the class QGeoServiceProvider("nokia") to get access to offline OVI maps.
But this class was introduced with QtMobilit 1.1. What is the equivalent class in QtMobility 1.0?
Regards
jackmack
Added after 8 minutes:
Quote:
Originally Posted by
ChrisW67
Can you provide a link to this "maps" example that uses offline data? I haven't seen it.
You can find the example in QtMobility 1.1.2 package. You can download it here
ftp://ftp.qt.nokia.com/qt/add-ons/qt...-src-1.1.3.zip
Look into examples/mapviewer.
I use QtSDK 1.1.2 and if you choose in configuration 4.7.3 the QtMobility 1.1.3 is used automatically. The I added the mapwidget.h/.cpp and mainwindow.h/.cpp to my project.
Re: How to use Nokia maps offline with QtMobility!
Quote:
Originally Posted by
jackmack
What's the name of the plugin?
The example "maps" of QtMobility 1.1.2 uses the class QGeoServiceProvider("nokia") to get access to offline OVI maps.
But this class was introduced with QtMobilit 1.1. What is the equivalent class in QtMobility 1.0?
Did you try building it against 1.0?
Re: How to use Nokia maps offline with QtMobility!
No, I use the QtSDk 1.1.2.
If you choose "building Qt-mobile application" the you can use Qt 4.6.3 (automatically using QtMobility 1.0.2) or Qt 4.7.3 (automatically using QtMobility 1.1.3).
In the symbian package there is an overview about which symbian version (S60 3rd, 5th...) supports what Qt versions.
Therefore you cannot only linking Qt 4.6.3 to 1.1.3.
Re: How to use Nokia maps offline with QtMobility!
Quote:
Originally Posted by
jackmack
No, I use the QtSDk 1.1.2.
If you choose "building Qt-mobile application" the you can use Qt 4.6.3 (automatically using QtMobility 1.0.2) or Qt 4.7.3 (automatically using QtMobility 1.1.3).
So build the plugin using one of these. What's the problem?
Re: How to use Nokia maps offline with QtMobility!
Quote:
Look into examples/mapviewer.
The QT Mobility 1.2 "mapsdemo" example uses the "nokia" plugin and Ovi maps to provide online map service, not offline. Without a network connection you may still have access to maps already in the small cache but outside that no mapping data will be available. That's why I asked where the offline, that is not requiring a network connection, maps plugin was. I'd love to have one that can do a basic world map without online connectivity, rather than having to write it myself.
Re: How to use Nokia maps offline with QtMobility!
Actually this plugin should be available somewhere as Nokia N9 mapping application can use offline maps and since it's written in QML, I'm assuming it's using QtMobility for map access.