Table of Contents

Class CameraOptions

Namespace
Maplibre.NativeFfi
Assembly
Maplibre.NativeFfi.dll

A camera, with only the members that fields selects.

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

Remarks

See mln_camera_options in the C API reference.

Properties

Anchor

The screen point that a change to the zoom, bearing, or pitch keeps in place. A center overrides it.

public ScreenPoint? Anchor { get; init; }

Property Value

ScreenPoint?

Bearing

The rotation from north, in degrees.

public double? Bearing { get; init; }

Property Value

double?

Center

public LatLng? Center { get; init; }

Property Value

LatLng?

CenterAltitude

The altitude of the center, in meters above sea level.

public double? CenterAltitude { get; init; }

Property Value

double?

FieldOfView

The vertical field of view, in degrees.

public double? FieldOfView { get; init; }

Property Value

double?

Padding

Insets from the map's edges. The camera centers within the rest.

public EdgeInsets? Padding { get; init; }

Property Value

EdgeInsets?

Pitch

The tilt toward the horizon, in degrees. 0 looks straight down.

public double? Pitch { get; init; }

Property Value

double?

Roll

The roll, in degrees.

public double? Roll { get; init; }

Property Value

double?

Zoom

public double? Zoom { get; init; }

Property Value

double?