Table of Contents

Struct CameraUpdate

Namespace
Maplibre.NativeFfi
Assembly
Maplibre.NativeFfi.dll

A camera change for MapHandle.UpdateCameraAsync().

public readonly record struct CameraUpdate : IEquatable<CameraUpdate>
Implements
Inherited Members

Remarks

A jump uses only the end handler of animation, and the handler runs as soon as the camera moves.

See mln_camera_update in the C API reference.

Constructors

CameraUpdate()

public CameraUpdate()

CameraUpdate(CameraUpdateMode, CameraOptions, AnimationOptions, GesturePhase)

A camera change for MapHandle.UpdateCameraAsync().

public CameraUpdate(CameraUpdateMode Mode, CameraOptions Camera, AnimationOptions Animation, GesturePhase GesturePhase)

Parameters

Mode CameraUpdateMode
Camera CameraOptions
Animation AnimationOptions
GesturePhase GesturePhase

Remarks

A jump uses only the end handler of animation, and the handler runs as soon as the camera moves.

See mln_camera_update in the C API reference.

Properties

Animation

public AnimationOptions Animation { get; init; }

Property Value

AnimationOptions

Camera

public CameraOptions Camera { get; init; }

Property Value

CameraOptions

GesturePhase

public GesturePhase GesturePhase { get; init; }

Property Value

GesturePhase

Mode

public CameraUpdateMode Mode { get; init; }

Property Value

CameraUpdateMode