I'm trying to find a reliable way to find out what the size (in lat/
lng) of a pixel is.

For zoom levels which don't show more than 1.0 worlds (!) I can just
use Gmap2.getSize() and divide by the delta latitude or longitude
values from Gmap2.getBounds().

However, this breaks down, typically at zoom levels 0 and 1, where
getSize() gives me the width of the whole map including 2 or even 3
complete copies of the world, while getBounds() tops out at -180/+180
for the longitude.

My current workaround is to determine the zoom level for which
(-180,+180) will fit on the screen, and for every zoom level
numericall lower ("bigger") than that, to double the effective size of
a pixel.  But it ain't pretty.  Does anyone have a better idea?

Thanks
Nick

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