latLngBoundsForCamera method

Future<LatLngBounds> latLngBoundsForCamera(
  1. CameraOptions camera
)

Computes the area that the map would show with camera.

Camera fields that camera doesn't set come from the map's camera. The longitudes can fall outside -180 to 180, so a view across the antimeridian gives one continuous range.

See mln_map_lat_lng_bounds_for_camera in the C API reference.

Implementation

Future<LatLngBounds> latLngBoundsForCamera(CameraOptions camera) => _query(
  _resultLatLngBounds,
  (arena, completion) => raw.mln_map_lat_lng_bounds_for_camera(
    _handle.raw,
    _writeCameraOptions(camera, arena),
    completion,
    nativeDiagnostic,
  ),
);