The link is working as such.
But when I try to convert the source into C code, the calculation of
lat and long from X,Y co-ordinates from an image didnt work in my
application.
Thanks for your help in advance.
I am just adding the below code in C.
var offset=16777216;
var radius=offset/Math.PI;
function XToL(x)
{
return ((Math.round(x)-offset)/radius)*180/Math.PI;
}
function YToL(y)
{
return (Math.PI/2-2*Math.atan(Math.exp((Math.round(y)-offset)/
radius)))*180/Math.PI;
}
On Apr 28, 11:57 pm, Wally <[email protected]> wrote:
> On Apr 28, 6:29 am, tweety <[email protected]> wrote:
>
> > Thanks for your reply.
>
> > The below link doesn't provide info what I need. It is not zooming the
> > clicked point. Moreover If I try the same code in C, it didn't work.
>
> > again I am stuck up at the same point. I need a sample code to convert
> > X,Y co-oridnate from an jpeg image to a proper lat and long so that I
> > can zoom-in with that lat and long.
>
> > Thanks for your help.
>
> What is not working ????
>
> www.polyarc.us/poly
>
> Click the map image to center it.
>
> Click the numbered buttons to change zoom level.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---