CameraConstraint.containCenter constructor

const CameraConstraint.containCenter({
  1. required LatLngBounds bounds,
})

Constrains the center coordinate of the camera to within bounds

Areas outside of bounds are likely to be visible. To instead constrain by the edges of the camera, use CameraConstraint.contain.

Implementation

const factory CameraConstraint.containCenter({
  required LatLngBounds bounds,
}) = ContainCameraCenter._;