×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jun 2009
    Location
    Kuala Lumpur, Malaysia
    Posts
    13

    Question Lightmaps + marker

    Hi

    I was looking for any kind of example how to put the marker(marker should move when user is panning the map) in the lightmaps.

    I suppose I have to find the correct tile in SlippyMap::render method and then just paint the marker on top. But I can't understand the tile itself...

    1. Each tile has a int x, y converted from latitude/longitude for fetching it from the server.
    2. Passing latitude/longitude to tileForCoordinate would give me QPointF, where x,y is floating point numbers.
    3. So given the example that I have x100, y100 that are going to be fetched from server, and the actual points are x100.6, y100.2. Are these floating point values belong to the x100, y100 tile or not?

    Thanks

  2. #2
    Registered User
    Join Date
    Jun 2009
    Location
    Kuala Lumpur, Malaysia
    Posts
    13

    Re: Lightmaps + marker

    After some hours killed on this issues I found the solution.

    In case you found this post and wondering how-to, I posted detail solution on my blog here http://gcourses.org/qt-lightmaps-map-marker/

    Enjoy

  3. #3
    Nokia Developer Expert
    Join Date
    Dec 2009
    Posts
    81

    Re: Lightmaps + marker

    The Lightmap example was added to show off the positioning part of the Location API - some time after that we added a Maps API (with support for map markers etc...).

    The default plugin uses the Ovi maps webservices. Seeing you didn't like the Google maps terms of service you should probably check the terms of service for Ovi maps before using it just to be sure. If that's not an option for you there are also one or two OpenStreetMaps plugins to be found if you google for them.

Similar Threads

  1. Change Marker in Google Maps
    By Mobile Developer in forum Mobile Java General
    Replies: 9
    Last Post: 2011-12-08, 13:18
  2. How to load java script?
    By sajidafaiyaz in forum [Archived] Beginning Qt
    Replies: 5
    Last Post: 2011-03-21, 05:01
  3. post a marker
    By zzizz in forum Symbian C++
    Replies: 6
    Last Post: 2010-07-05, 22:33
  4. Carbide marker bar blackened
    By biddyspider in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 1
    Last Post: 2006-11-24, 12:23
  5. Smooth movment of a marker
    By David_Kihlstrom in forum Mobile Java General
    Replies: 1
    Last Post: 2003-09-21, 11:34

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •