I have to show only one location at a time in the Google map with a marker.

I tried to use auto zoom & auto center using the following code:

```
var bounds = new google.maps.LatLngBounds();
bounds.extend(latlng);

map.fitBounds(bounds);   // auto zoom
map.panToBounds(bounds); // auto center

```

Also tried with the following:

```
var bounds = new google.maps.LatLngBounds();
bounds.extend(latlng);

map.setCenter(bounds.getCenter(), map.getBoundsZoomLevel(bounds));

```

Both the above solutions are giving the maximum zoom, since I am showing only one location in the map. With this maximum zoom I was not able to see the surrounding locations in the map.

Is there any solution to set zoom which gives a better view of map.

Giving the best zoom size (like 8, 9, 10....) which fits for all the locations also considerable one.

Thanks,  

Gopal.