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
Bearing
The rotation from north, in degrees.
public double? Bearing { get; init; }
Property Value
Center
public LatLng? Center { get; init; }
Property Value
CenterAltitude
The altitude of the center, in meters above sea level.
public double? CenterAltitude { get; init; }
Property Value
FieldOfView
The vertical field of view, in degrees.
public double? FieldOfView { get; init; }
Property Value
Padding
Insets from the map's edges. The camera centers within the rest.
public EdgeInsets? Padding { get; init; }
Property Value
Pitch
The tilt toward the horizon, in degrees. 0 looks straight down.
public double? Pitch { get; init; }
Property Value
Roll
The roll, in degrees.
public double? Roll { get; init; }
Property Value
Zoom
public double? Zoom { get; init; }