Struct CameraBounds
- Namespace
- Maplibre.NativeFfi
- Assembly
- Maplibre.NativeFfi.dll
All the limits on a map's camera.
public readonly record struct CameraBounds : IEquatable<CameraBounds>
- Implements
- Inherited Members
Remarks
Its members mean the same as those of BoundOptions.
See mln_camera_bounds in the C API reference.
Constructors
CameraBounds(LatLngBounds, bool, double, double, double, double)
All the limits on a map's camera.
public CameraBounds(LatLngBounds Bounds, bool Unbounded, double MinZoom, double MaxZoom, double MinPitch, double MaxPitch)
Parameters
BoundsLatLngBoundsThe area that the camera's center stays within. When
unboundedis true, it covers the whole world.UnboundedboolWhether no area limits the camera's center.
MinZoomdoubleMaxZoomdoubleMinPitchdoubleThe lowest pitch, in degrees.
MaxPitchdoubleThe highest pitch, in degrees.
Remarks
Its members mean the same as those of BoundOptions.
See mln_camera_bounds in the C API reference.
Properties
Bounds
The area that the camera's center stays within. When unbounded is
true, it covers the whole world.
public LatLngBounds Bounds { get; init; }
Property Value
MaxPitch
The highest pitch, in degrees.
public double MaxPitch { get; init; }
Property Value
MaxZoom
public double MaxZoom { get; init; }
Property Value
MinPitch
The lowest pitch, in degrees.
public double MinPitch { get; init; }
Property Value
MinZoom
public double MinZoom { get; init; }
Property Value
Unbounded
Whether no area limits the camera's center.
public bool Unbounded { get; init; }