The info you found for OSM should be applicable to Google Maps as well. It's basically find two things: 1) how many horizontal pixel (for global) at zoom level Z? and 2) how many meters (for global) at latitude LAT? The first one is basically 256x2^Z. The second one should be 2*PI*R*cosine(LATinRadian). R is earth radius in meters as a sphere. divide them should get what you need.
If a scale bar is what you are after, I think the API already has a control for that. On Jan 5, 3: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.
