×

Discussion Board

Results 1 to 11 of 11
  1. #1
    Registered User
    Join Date
    Feb 2008
    Posts
    47

    Scrolling google static map?

    Hello,
    how is possible to scroll a google static map?
    So far, i'm downloading a PNG image in the device, than i load it in the canvas but i cannot scroll it (i'd need to download another picture).
    Bye
    Giæ

  2. #2
    Regular Contributor
    Join Date
    Jan 2004
    Location
    Helsinki
    Posts
    376

    Re: Scrolling google static map?

    Quote Originally Posted by giapage View Post
    Hello,
    how is possible to scroll a google static map?
    So far, i'm downloading a PNG image in the device, than i load it in the canvas but i cannot scroll it (i'd need to download another picture).
    Bye
    Giæ
    Scrollable as is is not possible, thus the term "static". You need to download another picture.
    Mikko Ohtamaa

    http://mfabrik.com
    http://blog.mfabrik.com

  3. #3
    Registered User
    Join Date
    Feb 2008
    Posts
    47

    Re: Scrolling google static map?

    Yes,
    i know that i have to download a new map.
    Actually what i do not know is how to ge the coordinate of latitude and longitude of the center of the new static map that i have to download. Any idea?

  4. #4
    Regular Contributor
    Join Date
    Jan 2004
    Location
    Helsinki
    Posts
    376

    Re: Scrolling google static map?

    Quote Originally Posted by giapage View Post
    Yes,
    i know that i have to download a new map.
    Actually what i do not know is how to ge the coordinate of latitude and longitude of the center of the new static map that i have to download. Any idea?
    Uou must known yourself which for coordinates you request the map. They are in the URL.
    Mikko Ohtamaa

    http://mfabrik.com
    http://blog.mfabrik.com

  5. #5
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,406

    Re: Scrolling google static map?

    Hi,

    I've found this JS function that could help you:

    http://www.polyarc.us/adjust.js
    where:
    "x" is Latitude in fractional degrees
    "y" is Longitude in fractional degrees
    "deltaX" is positive / negative Latitude adjustment in PIXELS
    "deltaY" is positive / negative Longitude adjustment in PIXELS
    "z" is zoom level
    Hope it helps
    Pit

  6. #6
    Registered User
    Join Date
    Feb 2008
    Posts
    47

    Re: Scrolling google static map?

    thank you man!
    I deleted the round function and now it's perfetly working!

  7. #7
    Regular Contributor
    Join Date
    Aug 2005
    Posts
    86

    Re: Scrolling google static map?

    Hi,

    I am also doing the same thing to scroll static google map image. But i am not able to implement adjust function on that. Can you help me out.

    what i have to do with static image, i need to change mutable or anything else i have to change for scroll the Google MAP.

    Please kindly help if anybody known.

    Thanks in advance
    R. mottaisami

  8. #8
    Registered User
    Join Date
    Jul 2010
    Posts
    1

    Re: Scrolling google static map?

    please provide me the code of scrolling in j2me please please

  9. #9
    Nokia Developer Champion
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,852

    Re: Scrolling google static map?

    hello itsspy_2050

    you can ask this question at the the java mobile forums for more efficient replies.

    Regards,

  10. #10
    Registered User
    Join Date
    Feb 2008
    Posts
    47

    Re: Scrolling google static map?

    Quote Originally Posted by itsspy_2050 View Post
    please provide me the code of scrolling in j2me please please
    Hi guys,
    I'm not able anymore to retrieve the code because I've lost it since I did not program anymore but I can give you an important tip which I've learned from the boat-driving-license that is:
    If you have a GPS point of coordinates:
    LAT alpha= 41° yyy.zz ' N
    LON deltha = 012° kkk.tt' E
    you can estimate that
    1 Minute of degree longitude= 1 International Nautical Miles = 1852m (http://en.wikipedia.org/wiki/Nautical_mile)

    Please, watch out that latitude and longitude can be written either on decimal format (41.50 °N) or in Degrees, Minutes, Seconds (Es: 41° 30' 00'' N) and you can use that equation only for minute of degree. This means that if you have the coordinates in decimal format, you first have to convert it to degree, minutes, seconds.
    The second remark is that that equation is valid only for short distances so you should not use it when the zoom of the map is very out.

    You can use this equation to map the movement of the map in your display.
    Good luck

  11. #11
    Regular Contributor
    Join Date
    Aug 2011
    Location
    Berlin
    Posts
    289

    Re: Scrolling google static map?

    If you want to minimise the number of bytes downloaded, you would be better off using a proper Java ME library to display a scrolling map. e.g. look at:
    http://www.developer.nokia.com/Devel...I_for_Java_ME/

    If you insist on using a static mapping library for a dynamic mapping using case, you could look at:
    http://www.developer.nokia.com/Commu...I_with_Java_ME

    The only dynamic maps within the Map Image API rely in JavaScript, but this link may prove useful:
    http://m.nokia.me/dynamic.jsp?c=62.2...400&w=300&z=13

Similar Threads

  1. GoogleIt
    By deepika.mangla in forum Symbian
    Replies: 5
    Last Post: 2011-05-28, 11:04
  2. Python for UIQ
    By cassioli in forum Symbian
    Replies: 141
    Last Post: 2008-06-11, 18:16
  3. Google Map and python
    By Chiara81000 in forum Symbian
    Replies: 3
    Last Post: 2008-02-12, 05:18
  4. Efficiently implementing a scrolling map system in J2ME
    By dwneonstar in forum Mobile Java General
    Replies: 3
    Last Post: 2003-05-21, 17:57
  5. some problems with label
    By vivienzhung in forum Mobile Java General
    Replies: 1
    Last Post: 2002-10-21, 09:52

Posting Permissions

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