setCamera method

void setCamera(
  1. CameraOptions camera
)

Moves the projection's camera, without changing the map.

Camera fields that camera doesn't set keep their values.

See mln_map_projection_set_camera in the C API reference.

Implementation

void setCamera(CameraOptions camera) => withNativeArena((arena) {
  _check(
    raw.mln_map_projection_set_camera(
      _handle.raw,
      _writeCameraOptions(camera, arena),
      nativeDiagnostic,
    ),
  );
});