Table of Contents

Class CameraDelta

Namespace
Maplibre.NativeFfi
Assembly
Maplibre.NativeFfi.dll

A change to the camera from where it is now, for gestures.

public sealed record CameraDelta : IEquatable<CameraDelta>
Inheritance
CameraDelta
Implements
Inherited Members

Remarks

See mln_camera_delta in the C API reference.

Properties

Anchor

The screen point that scale, bearing, and pitch keep in place. It needs one of them, and it combines with offset only in a delta without a duration.

public ScreenPoint? Anchor { get; init; }

Property Value

ScreenPoint?

Animation

public AnimationOptions Animation { get; init; }

Property Value

AnimationOptions

Bearing

Degrees to add to the bearing.

public double? Bearing { get; init; }

Property Value

double?

GesturePhase

public GesturePhase GesturePhase { get; init; }

Property Value

GesturePhase

Momentum

How the gesture keeps moving after this delta. Only a delta in the GesturePhase.End phase carries it.

public GestureMomentum? Momentum { get; init; }

Property Value

GestureMomentum?

Offset

Moves the map's content this far on the screen, as a drag does.

public ScreenPoint? Offset { get; init; }

Property Value

ScreenPoint?

Pitch

Degrees to add to the pitch.

public double? Pitch { get; init; }

Property Value

double?

Scale

Multiplies the map's scale. 2 zooms in by one level.

public double? Scale { get; init; }

Property Value

double?