Table of Contents

Enum CameraTransitionOutcome

Namespace
Maplibre.NativeFfi
Assembly
Maplibre.NativeFfi.dll

How a camera change ended.

public enum CameraTransitionOutcome : uint

Fields

Cancelled = 1

MapHandle.CancelCameraTransitionsAsync(), MapHandle.CancelCameraTransitionsWithIdAsync(), a gesture's GesturePhase.Begin or GesturePhase.Cancel, MapHandle.SetFreeCameraOptionsAsync(), 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.

Closed = 2

The map closed before the change ended.

Completed = 0

The camera finished the change.

Replaced = 3

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.

A later change that sets only some of those fields leaves the change animating the rest. A fly's center and zoom count as one field, and so do an anchored change's center and the fields that the anchor holds in place.

Remarks

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

See mln_camera_transition_outcome in the C API reference.