Thanks, Xeoncross.

We'll add an example to the developer's guide to show this as well.


On Mar 29, 12:20 pm, Xeoncross <[email protected]> wrote:
> I wanted to post this for anyone like me that spent a long time
> looking for an easy way to get the Google Maps API to figure out the
> zoom level for you. Just keep adding points to the bounds for each
> element you add to the map.
>
> http://econym.org.uk/gmap/basic14.htm
>
> map.setCenter(new GLatLng(0,0),0);
> var bounds = new GLatLngBounds();
> bounds.extend(latlng);
> map.setZoom(map.getBoundsZoomLevel(bounds));
--~--~---------~--~----~------------~-------~--~----~
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