The geometry library can calculate the distance in meters between two lat/lon pairs. http://code.google.com/apis/maps/documentation/javascript/geometry.html
The Mercator projection object used in this example: http://code.google.com/apis/maps/documentation/javascript/examples/map-coordinates.html allows you to convert lat/lon to pixels. It may be inportant to understand the concept of World Coordinates: http://code.google.com/apis/maps/documentation/javascript/maptypes.html#WorldCoordinates Provided both lat/lon pairs have the same latitude, the pixel distance is the difference between the two x coordinates. Finally, divide the mumber meters by the number of pixels to get meters per pixel. But I wonder what you want to use this for. If you want to create something like a measuring tool, you don't need pixels. If you want to create custom tiles you don't need meters. -- Marcelo - http://maps.forum.nu -- On Jan 5, 1:58 am, Jakub Synowiec <[email protected]> wrote: > I'm looking for an equation to compute meter per pixel ratio for given zoom > level and latitude. I've found some information considering OSM, but are > they relevant to Google Maps? > Can anyone point me in the right direction? -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" 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-js-api-v3?hl=en.
