Set view

You can set the view of the map using fitBounds method. This function will fit the map in your viewport within given bounding coordinates. Bounds are two dimensional array of latitude and longitude values. First array represents southwest corner location and second array represents northeast corner location.

var bounds = [[37.32743560364129, -121.93620443344118], [37.32258961764879, -121.95638537406923]]

Click on "Set Bounds" button in following example to see the effect.