How do I set the zoom level to show all the markers on Google Maps?
In my Google Map there are different markers in different positions. I want to set google map zoo
You can use the extend method of the GLatLngBounds object, which represents a rectangle on the map.
var bounds = new GLatLngBounds();
Loop around all the points on your map, extending the bounds of your GLatLngBounds object for each one.
bounds.extend(myPoint);
Finally you can use your bounds object to set the centre and zoom of your map (where map is your map object)
map.setCenter(bounds.getCenter(), map.getBoundsZoomLevel(bounds));