How to zoom in google map (J2ME)
- by Nivek
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)
Create a project, build the code.
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