I need an explanation of how to work with CameraUpdateFactory. My app draws a route on the screen and I need to centralize this route map. Then get the bounds of the route and try to set the zoom. But when I run the huge zoom, referring to the documentation says CameraUpdateFactory of the highest zoom possible but that's not what I need.
mMap.setOnMapLoadedCallback(new GoogleMap.OnMapLoadedCallback() {
@Override
public void onMapLoaded() {
mMap.moveCamera(CameraUpdateFactory.newLatLngBounds(bounds, 6));
}
});