Google maps APIV3: simple zoom out to see all included markers

I have a v3 map, with a marker. Later on when the map is already rendered I may get second marker. When that happens, I would like to get the map zoomed out so I can see both markers.
How to do that? Is it possible to get list of markers in the map (from the map) and zoom to those?


Source: javascript

Leave a Reply