How to zoom in google map (J2ME)

Posted by Nivek on Stack Overflow See other posts from Stack Overflow or by Nivek
Published on 2010-02-06T09:02:35Z Indexed on 2010/06/02 3:23 UTC
Read the original article Hit count: 413

Filed under:
|
|

Hi all,

I am trying to develop a J2ME application that could retrieve the google map by passing in the GPS coordinates.

From http://wiki.forum.nokia.com/index.php/Google_Maps_API_in_Java_ME, it provides the Utility method for map scrolling. Basically it states that i need to include MicroFloat library in my project.

Here's what i did (Not sure if i am doing it right)

  1. Create a project, build the code.
  2. Add the jar file into my current project lib.

but i am still getting error from codes.

Example double LToY(double y)
{
return Math.round(
    offset - radius * 
    Double.longBitsToDouble(MicroDouble.log(
        Double.doubleToLongBits(
        (1 + Math.sin(Math.toRadians(y)))
        /
        (1 - Math.sin(Math.toRadians(y)))
        )
    )) / 2);
}

Am i missing any import statment??? Btw i am using netbeans 6.5. Thanks for any guidance...

Kevin

© Stack Overflow or respective owner

Related posts about java

Related posts about google-maps