Enumeration

MaplibreNativeFfiCameraTransitionOutcome

Declaration

enum MaplibreNativeFfi.CameraTransitionOutcome

Description [src]

How a camera change ended.

A change that ends in more than one way reports MAPLIBRE_NATIVE_FFI_CAMERA_TRANSITION_OUTCOME_CANCELLED if any of it was cancelled, and otherwise MAPLIBRE_NATIVE_FFI_CAMERA_TRANSITION_OUTCOME_REPLACED if any of it was replaced.

See mln_camera_transition_outcome in the C API reference.

Members

MAPLIBRE_NATIVE_FFI_CAMERA_TRANSITION_OUTCOME_COMPLETED

The camera finished the change.

  • Value: 0
  • Available since: 0
MAPLIBRE_NATIVE_FFI_CAMERA_TRANSITION_OUTCOME_CANCELLED

maplibre_native_ffi_map_cancel_camera_transitions_async(), maplibre_native_ffi_map_cancel_camera_transitions_with_id_async(), a gesture’s MAPLIBRE_NATIVE_FFI_GESTURE_PHASE_BEGIN or MAPLIBRE_NATIVE_FFI_GESTURE_PHASE_CANCEL, maplibre_native_ffi_map_set_free_camera_options_async(), or a resize that moved the camera back inside its bounds stopped the change. A command that fails before it moves the camera also reports this.

  • Value: 1
  • Available since: 0
MAPLIBRE_NATIVE_FFI_CAMERA_TRANSITION_OUTCOME_CLOSED

The map closed before the change ended.

  • Value: 2
  • Available since: 0
MAPLIBRE_NATIVE_FFI_CAMERA_TRANSITION_OUTCOME_REPLACED

A later camera change set every field that a part of the change was still animating, so that part stopped. Its other parts keep animating, and the change reports this outcome when they end, unless one was cancelled.

  • Value: 3
  • Available since: 0