map.getBoundsZoomLevel() will return you a zoom level which will 
accommodate a given bounds. See "Fitting the map to the data"
http://econym.org.uk/gmap/basic14.htm which first creates a bounding box 
from the data, then fits the map to those bounds.

The zoom level is rounded down to an integer, because Google Maps 
doesn't support fractional zoom levels, so the fit might be quite loose.

-- 
Mike Williams
http://econym.org.uk/gmap


--

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