setCamera method

Future<void> setCamera(
  1. CameraOptions cameraOptions
)

Changes the map view by any combination of center, zoom, bearing, and pitch, without an animated transition. The map will retain its current values for any details not passed via the camera options argument. It is not guaranteed that the provided camera options will be set, the map may apply constraints resulting in a different camera state.

Implementation

Future<void> setCamera(CameraOptions cameraOptions) =>
    _cameraManager.setCamera(cameraOptions);