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
There you go:
Google Maps getBoundsZoomLevel Demo
We are creating 10 random points in the above example and then passing each point to GLatLngBounds.extend(). Finally we get the correct zoom level with GMap2.getBoundsZoomLevel().
GLatLngBounds.extend()
GMap2.getBoundsZoomLevel()