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
ModeCameraUpdateModeCameraCameraOptionsAnimationAnimationOptionsGesturePhaseGesturePhase
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
Camera
public CameraOptions Camera { get; init; }
Property Value
GesturePhase
public GesturePhase GesturePhase { get; init; }
Property Value
Mode
public CameraUpdateMode Mode { get; init; }