setLatLngBoundsForCameraTarget

Sets a LatLngBounds to constrain the camera target.

When bounds are set, the camera target (center) is constrained to remain within these bounds for both user gestures (pan/scroll) and programmatic camera movements.

Parameters

bounds

The bounds to constrain the camera target, or null to remove constraints