The easiest way to do it is using the API functions
GMercatorProjection.fromPixelToLatLng() and
GMercatorProjection.fromLatLngToPixel(), however, if you're using
static maps, you're probably not loading the API, are you? :-)
http://code.google.com/apis/maps/documentation/reference.html#GMercatorProjection

That calculation can also be done without the API, of course, but I
don't have those functions handy.
I believe Bratliff has a js include that has some of the functions
needed, similar to these:
http://groups.google.com/group/Google-Maps-API/browse_thread/thread/425103b407e08ecd/64bd3dff69e40cca?lnk=gst&q=ytolat#64bd3dff69e40cca

You know the lat/lon of the map center, the width and the height in
pixels, so you calculate the lat/lon at the edge pxels, North-South
and East-West, and then the distance between those edges.

--
Marcelo - http://maps.forum.nu
--


On Oct 20, 6:50 pm, AlessandroCaruso <[EMAIL PROTECTED]> wrote:
> When i download a static map from google, can i know the largeness of
> map in km??what can i do?
>
> thanks a lot
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to