Results 1 to 9 of 9

Thread: creating custom mapping plugin for QtLocation

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2010
    Posts
    9
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default creating custom mapping plugin for QtLocation

    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.
    Last edited by mateuszzz88; 8th September 2011 at 10:32.

Similar Threads

  1. Creating custom plugin
    By T4ng10r in forum Qt Programming
    Replies: 9
    Last Post: 17th August 2012, 23:37
  2. Replies: 4
    Last Post: 22nd May 2011, 17:26
  3. creating designer plugin
    By GrahamLabdon in forum Newbie
    Replies: 3
    Last Post: 21st March 2011, 11:58
  4. QtLocation and QtEmbedded
    By kaikai24 in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 29th September 2009, 11:58
  5. creating table plugin
    By mgurbuz in forum Qt Programming
    Replies: 3
    Last Post: 28th April 2006, 13:50

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.