Click here to read about this example in my blog

Bounding Box Example

The centerpoint and zoom level of this map are calculated from the bounding box around the markers.