Question: I haven't found an answer in my search, there are a few answers on SO but they didn't work for me.

I have 2 markers on the map and I am using LatLngBounds builder in order to let the camera zoom to the right zoom level to include them both. Everything works as expected aside one thing, when the 2 markers are really close to each other, the map is very very zoomed and well, it doesn't make any sense to have this level of zooming.

```
LatLngBounds.Builder builder = new LatLngBounds.Builder();
builder.include(firstMarker.getPosition());
builder.include(secondMarker.getPosition());
LatLngBounds bounds = builder.build();

CameraUpdate cu = CameraUpdateFactory.newLatLngBounds(bounds, markerPadding);

```

Is there a way to force a certain level of zoom, after which the camera won't zoom ? This would avoid having the map too zoomed in/out. Basically I am using 15.0f as level of zoom. If the points are too far away I want the zoom to fit them both. If points are getting close I don't want the zoom level to go beyond 15.0f.

Answer: 
Quick fix is: 

```
gMap.setOnMapLoadedCallback(this);
CameraUpdate cu = CameraUpdateFactory.newLatLngBounds(bounds, padding);
gMap.setMaxZoomPreference(10);
gMap.animateCamera(cu);

@Override
public void onMapLoaded() {
    gMap.resetMinMaxZoomPreference();
}

```

Beware that it could halt zoom until map is fully reloaded. But as a quick fix it works.
There is no way to limit zoom levels as of 4.0.30, but you may track [this issue](http://code.google.com/p/gmaps-api-issues/issues/detail?id=4663).

The easy way would be to force zoom level like on this video: <http://www.youtube.com/watch?v=-nCZ37HdheY>  

Basically they are calling `animateCamera` when certain zoom level is reached.

That would look a bit weird, because you then have 2 animations that are not started by the user.

The hard way would be doing the math yourself. Try working with `CameraUpdateFactory.newLatLngZoom` with `LatLng` as a center between these points and your max zoom when you detect points are close to each other.