On Oct 30, 4:38 am, Alejo83 <[EMAIL PROTECTED]> wrote:
> // Find the optimal Width Zoom
>
> int wZoom = 0;
> double w = Math.abs( maxLong - minLong );
> for (int i = 1; i < 16; i++ ) {
>         if ( width > w ) break;
>         width *= 2;
>         wZoom = i;

Google Map Tiles use a Mercator coordinate system.  You need to
project your bounding coordinates from the spherical latitude/
longitude into the planar Mercator before calculating the zoom.

See http://mapki.com/wiki/Lat/Lon_To_Tile
--~--~---------~--~----~------------~-------~--~----~
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