In addition to the Stack Overflow post that @Crescent Fresh pointed out above (which uses API v2), the method you want to use is LatLngBounds.extend() .
Here is a complete example using the v3 API :
<!DOCTYPE html> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"/> <title>Google Maps LatLngBounds.extend() Demo</title> <script src="http://maps.google.com/maps/api/js?sensor=false" type="text/javascript"></script> </head> <body> <div id="map" style="width: 400px; height: 300px;"></div> <script type="text/javascript"> var map = new google.maps.Map(document.getElementById('map'), { mapTypeId: google.maps.MapTypeId.TERRAIN }); var markerBounds = new google.maps.LatLngBounds(); var randomPoint, i; for (i = 0; i < 10; i++) { </script> </body> </html>
Screenshot:

source share