coordinateBoundsForCamera method

Future<CoordinateBounds> coordinateBoundsForCamera(
  1. CameraOptions camera
)

Returns the coordinate bounds that are visible for a given camera.

On Android and iOS, the bounds cover the full map view, including the area under the camera padding. Terrain elevation has no effect. Fields that camera does not set come from the current camera. CameraOptions.anchor has no effect.

On web, the bounds cover only the area inside the camera padding, and they include the terrain elevation. The bounds can be slightly different from the bounds on Android and iOS.

Implementation

Future<CoordinateBounds> coordinateBoundsForCamera(CameraOptions camera) =>
    _impl.coordinateBoundsForCamera(camera);