cameraForCoordinateBounds method

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

Convenience method that returns the camera options object for given parameters.

Implementation

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