cameraForCoordinateBounds method

Future<CameraOptions> cameraForCoordinateBounds(
  1. CoordinateBounds bounds,
  2. MbxEdgeInsets padding,
  3. double? bearing,
  4. double? pitch,
  5. double? maxZoom,
  6. ScreenCoordinate? offset,
)

Returns camera options that fit the given coordinate bounds.

Implementation

Future<CameraOptions> cameraForCoordinateBounds(
  CoordinateBounds bounds,
  MbxEdgeInsets padding,
  double? bearing,
  double? pitch,
  double? maxZoom,
  ScreenCoordinate? offset,
) => _impl.cameraForCoordinateBounds(
  bounds,
  padding,
  bearing,
  pitch,
  maxZoom,
  offset,
);