Wasn't it Andrew Leach who wrote:
>
>On May 18, 3:44 pm, biswa rajgarh <[email protected]> wrote:
>> Hi,
>>
>> Can any body give me the formulae of how can we convert pixel to mile
>> or  meter .
>
>I'm sure you're aware that the scale varies with latitude, and
>vertical scale is the same as horizontal scale only at the Equator.
>
>You can convert from pixels to metres with something like this:
>
>map.fromDivPixelToLatLng(new GPoint(0,0)).distanceFrom
>(map.fromDivPixelToLatLng(new
>GPoint(0,1)));
>
>[that should be all on one line]

fromContainerPixelToLatLng is more likely to be relevant than 
fromDivPixelToLatLng.

-- 
http://econym.org.uk/gmap
The Blackpool Community Church Javascript Team


--~--~---------~--~----~------------~-------~--~----~
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