its called fitBounds (need 2 times lat 2 times lng)

http://code.google.com/intl/de-DE/apis/maps/documentation/javascript/reference.html#fitBounds

it automatic sets the zoom level

On 16 Mrz., 21:17, Yves <yves.goer...@gmail.com> wrote:
> I have a list of lat/long positions and would like to show them all in
> a map with markers. I can determine the centre by finding the middle
> of the entire lat resp. lng value space, and I can add all markers to
> the map. I just don't know how to determine the correct zoom value so
> that all markers are visible. Is there a special function for that
> which I didn't find? Or do I have to go down the path to compute with
> lat/lng and tile indices...?

-- 
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 google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to