Hello,
I was playing with new QtLocation API for mapping and I liked it. Now I'd like to create my own map, for starters based on OpenStreetMap tiles.
As documentation instructs, I subclassed QGeoTiledMappingManagerEngine, QGeoTiledMapReply and QGeoServiceProviderFactory. As far as I can see, documentation leaves me in middle of nowhere - those classes are useless alone. Ideally, QGeoServiceProvider::availableServiceProviders(); should return names ("nokia", "myosm"), then I could call serviceProvider = new QGeoServiceProvider("myosm"); but only "nokia" is avilable.
What should I do next?
I expect I should somehow use TEMPLATE = lib, CONFIG += plugin, PLUGIN_TYPE=geoservices (found those in nokia plugin source code), Q_EXPORT_PLUGIN2(mlosm, OsmMapServiceProviderFactory) (for some reason I DIDN'T find this) and maybe some TARTGET/DESTDIR/$$qtLibraryTarget magic, but so far I had no luck.
I have none experience in writing plugins, and all examples I find show how to write some types of plugins (styles, image formats...), but I can't find equivalent type for mapping.
Plese help me.
EDIT:
forgot to mention: Currently I try to work it out on desktop qt and simulator, later I'll add maemo target. I have installed QtSDK, separate desktop Qt-4.7.4 and QtMobility-1.2 for that desktop qt. mapsdemo (from QtMobilityExamples) works flawlessly with "nokia" plugin both on desktop and simulator.
Bookmarks