×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    Jan 2010
    Posts
    19

    Question How to get the bound's info in ovi map api of js version?

    Hi, all.

    I wanna get the bound's info of the map-view by ovi map api js' version.
    But the only related api I can find in the document is this
    http://api.maps.ovi.com/apireference...getBoundingBox

    in the link below, I can get the mark's bound only. But I need the info of the whole map view which represent in the browser. Any one can tell me what the api is?

    Thank you for your great help.

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,165

    Re: How to get the bound's info in ovi map api of js version?

    what about bounding box of the map display: http://api.maps.ovi.com/apireference...getBoundingBox ?

  3. #3
    Registered User
    Join Date
    Jan 2010
    Posts
    19

    Re: How to get the bound's info in ovi map api of js version?

    Quote Originally Posted by symbianyucca View Post
    what about bounding box of the map display: http://api.maps.ovi.com/apireference...getBoundingBox ?
    Thank you.

    The api you metioned work like this way:
    If there is any markers in the map view, the method will return the smallest box's bounds which contain all markers. And if there is no markers on the map, the method will return null.

    I wanna get the bound of the map whatever the map has the marker on it.
    Thanks:-)

  4. #4
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,165

    Re: How to get the bound's info in ovi map api of js version?

    ok, then if other things fails, you could always think that the upper corner is MAP.pixelToGeo(0,0) and you could use the getElementById() to get the div for the map, check its width & height and use the pixelToGeo to get its geo location. And use these two geo location for ciostructing new ovi.mapsapi.geo.BoundingBox...

  5. #5
    Registered User
    Join Date
    Jan 2010
    Posts
    19

    Re: How to get the bound's info in ovi map api of js version?

    Thank you.

    The api you metioned work like this way:
    If there is any markers in the map view, the method will return the smallest box's bounds which contain all markers. And if there is no markers on the map, the method will return null.

    I wanna get the bound of the map whatever the map has the marker on it.
    Thanks:-)

  6. #6
    Registered User
    Join Date
    Jan 2010
    Posts
    19

    Re: How to get the bound's info in ovi map api of js version?

    Quote Originally Posted by symbianyucca View Post
    ok, then if other things fails, you could always think that the upper corner is MAP.pixelToGeo(0,0) and you could use the getElementById() to get the div for the map, check its width & height and use the pixelToGeo to get its geo location. And use these two geo location for ciostructing new ovi.mapsapi.geo.BoundingBox...
    Thanks a lot, I will try this

  7. #7
    Registered User
    Join Date
    Jan 2010
    Posts
    19

    Re: How to get the bound's info in ovi map api of js version?

    Quote Originally Posted by symbianyucca View Post
    ok, then if other things fails, you could always think that the upper corner is MAP.pixelToGeo(0,0) and you could use the getElementById() to get the div for the map, check its width & height and use the pixelToGeo to get its geo location. And use these two geo location for ciostructing new ovi.mapsapi.geo.BoundingBox...
    It works perfect!!!
    Thank you!!!

  8. #8
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,165

    Re: How to get the bound's info in ovi map api of js version?

    that functionality should be provided by the API, though nice to hear that the workaround fits your requirements.

Similar Threads

  1. Version from info.plist
    By jspringall in forum Symbian
    Replies: 2
    Last Post: 2011-05-23, 11:16
  2. Version info S60 3rd MR in .pkg file
    By Zdenko61 in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2006-07-10, 12:59
  3. Version info S60 3rd MR
    By Zdenko61 in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2006-07-06, 16:31
  4. Version info S60 3rd MR
    By Zdenko61 in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 1
    Last Post: 2006-07-06, 16:31
  5. INFO: new version of JavaCommentPreprocessor is available
    By raydac in forum Mobile Java General
    Replies: 1
    Last Post: 2003-03-07, 05:36

Posting Permissions

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