Table of Contents

Struct MapViewport

Namespace
Maplibre.NativeFfi
Assembly
Maplibre.NativeFfi.dll

A map's whole viewport.

public readonly record struct MapViewport : IEquatable<MapViewport>
Implements
Inherited Members

Remarks

Its members mean the same as those of MapViewportOptions.

See mln_map_viewport in the C API reference.

Constructors

MapViewport(NorthOrientation, ConstrainMode, ViewportMode, EdgeInsets)

A map's whole viewport.

public MapViewport(NorthOrientation NorthOrientation, ConstrainMode ConstrainMode, ViewportMode ViewportMode, EdgeInsets FrustumOffset)

Parameters

NorthOrientation NorthOrientation
ConstrainMode ConstrainMode
ViewportMode ViewportMode
FrustumOffset EdgeInsets

Remarks

Its members mean the same as those of MapViewportOptions.

See mln_map_viewport in the C API reference.

Properties

ConstrainMode

public ConstrainMode ConstrainMode { get; init; }

Property Value

ConstrainMode

FrustumOffset

public EdgeInsets FrustumOffset { get; init; }

Property Value

EdgeInsets

NorthOrientation

public NorthOrientation NorthOrientation { get; init; }

Property Value

NorthOrientation

ViewportMode

public ViewportMode ViewportMode { get; init; }

Property Value

ViewportMode