×

Discussion Board

Results 1 to 9 of 9
  1. #1
    Registered User
    Join Date
    Apr 2011
    Posts
    42

    Get map object's center and radius

    How can I get map object's center (coordinate) and radius.
    I used map->addMapObjects(mapObject). But later, I want to get it's coordinate and radius.
    mapObject that I added previously is QGeoMapCircleObject which has center and radius properties but QGeoMapObject does not seem to have.

  2. #2
    Registered User
    Join Date
    Apr 2011
    Location
    Ahmedabad, India
    Posts
    37

    Re: Get map object's center and radius

    hello PcNy,
    Read properly QGeoMapCircleObject Class Reference.
    And see this Example, this is example of QGeoMapCircleObject..
    I hope this will useful for you.
    Last edited by Abhishek Khetani; 2011-05-04 at 08:08.
    - AbhisheKhetani

  3. #3
    Registered User
    Join Date
    Dec 2009
    Posts
    376

    Re: Get map object's center and radius

    why don't you try for midmaps they are realtively and provide greater functionalty http://www.jappit.com/blog/midmaps-g...va-me-library/ this might help you

  4. #4
    Registered User
    Join Date
    Apr 2011
    Posts
    42

    Re: Get map object's center and radius

    Quote Originally Posted by prssupe View Post
    why don't you try for midmaps they are realtively and provide greater functionalty http://www.jappit.com/blog/midmaps-g...va-me-library/ this might help you
    I have to develop the application using c++ and Ovi map

  5. #5
    Nokia Developer Expert
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,143

    Re: Get map object's center and radius

    hello Abhishek Khetani, you don't get any additional benefits on repeating same answer over and over again, thus please try checking what has been said, and then answer accordingly.

    PcNy: As the QGeoMapObject does not have radius, you can not get it from it, instead you would either need to check whether you get any bounding areas from it, and if you do, use it for calculating any radius. Or use the circle as was suggested.

  6. #6
    Nokia Developer Moderator
    Join Date
    Oct 2006
    Location
    Finland
    Posts
    4,492

    Re: Get map object's center and radius

    Quote Originally Posted by symbianyucca View Post
    hello Abhishek Khetani, you don't get any additional benefits on repeating same answer over and over again, thus please try checking what has been said, and then answer accordingly.
    His post was moderated and so was yours

    Anyway I have cleaned up and approved only one of his(to keep things in context) as well as your post.

  7. #7
    Registered User
    Join Date
    Apr 2011
    Location
    Ahmedabad, India
    Posts
    37

    Re: Get map object's center and radius

    Quote Originally Posted by symbianyucca View Post
    hello Abhishek Khetani, you don't get any additional benefits on repeating same answer over and over again, thus please try checking what has been said, and then answer accordingly.
    Thank you,
    But, it not my fault. It was server problem.
    Because, while I upload my post they time in this thread my post was not showing me.
    Sorry for that.
    - AbhisheKhetani

  8. #8
    Registered User
    Join Date
    Apr 2011
    Location
    Ahmedabad, India
    Posts
    37

    Re: Get map object's center and radius

    Quote Originally Posted by Symbian_Neil View Post
    His post was moderated and so was yours

    Anyway I have cleaned up and approved only one of his(to keep things in context) as well as your post.
    Thank you Neil.
    And sorry for that.
    - AbhisheKhetani

  9. #9
    Registered User
    Join Date
    Apr 2011
    Posts
    42

    Re: Get map object's center and radius

    Quote Originally Posted by symbianyucca View Post
    hello Abhishek Khetani, you don't get any additional benefits on repeating same answer over and over again, thus please try checking what has been said, and then answer accordingly.

    PcNy: As the QGeoMapObject does not have radius, you can not get it from it, instead you would either need to check whether you get any bounding areas from it, and if you do, use it for calculating any radius. Or use the circle as was suggested.


    Yes, I used map->mapObjectsAtScreenPosition(mouseClick.pos()); in order to get map objects within boundaries.
    It can check only there is map object but I want to get center of that map object.

Similar Threads

  1. how to get map of a location if I know its Latitude and Longitude?
    By rohanwaugh in forum Symbian Networking & Messaging (Closed)
    Replies: 6
    Last Post: 2011-06-28, 07:44
  2. get Center button using OfferKeyEventL()
    By sid_diu in forum Symbian
    Replies: 8
    Last Post: 2009-07-20, 08:24
  3. Replies: 7
    Last Post: 2009-06-30, 10:31
  4. Replies: 4
    Last Post: 2009-01-16, 14:58

Posting Permissions

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