Table of Contents

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

Bounds LatLngBounds

The area that the camera's center stays within. When unbounded is true, it covers the whole world.

Unbounded bool

Whether no area limits the camera's center.

MinZoom double
MaxZoom double
MinPitch double

The lowest pitch, in degrees.

MaxPitch double

The 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

LatLngBounds

MaxPitch

The highest pitch, in degrees.

public double MaxPitch { get; init; }

Property Value

double

MaxZoom

public double MaxZoom { get; init; }

Property Value

double

MinPitch

The lowest pitch, in degrees.

public double MinPitch { get; init; }

Property Value

double

MinZoom

public double MinZoom { get; init; }

Property Value

double

Unbounded

Whether no area limits the camera's center.

public bool Unbounded { get; init; }

Property Value

bool