Table of Contents

Struct MapSnapshot

Namespace
Maplibre.NativeFfi
Assembly
Maplibre.NativeFfi.dll

A map's state, as MapHandle.GetSnapshot() reads it.

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

Remarks

See mln_map_snapshot in the C API reference.

Constructors

MapSnapshot(MapDebugFlag, ulong, bool, bool, bool, bool, RuntimeEventFlag, ulong, MapTileSettings, CameraBounds, FreeCamera, MapView)

A map's state, as MapHandle.GetSnapshot() reads it.

public MapSnapshot(MapDebugFlag DebugFlags, ulong Generation, bool FullyLoaded, bool RenderingStatsViewEnabled, bool GestureInProgress, bool TransitionInProgress, RuntimeEventFlag EventMask, ulong LatestRenderUpdateGeneration, MapTileSettings Tile, CameraBounds Bounds, FreeCamera FreeCamera, MapView View)

Parameters

DebugFlags MapDebugFlag
Generation ulong

Grows with each change to the map's state.

FullyLoaded bool

Whether the style and every resource that the view needs have loaded.

RenderingStatsViewEnabled bool
GestureInProgress bool
TransitionInProgress bool
EventMask RuntimeEventFlag
LatestRenderUpdateGeneration ulong

Counts the render updates that the map has made for its render session.

Tile MapTileSettings
Bounds CameraBounds
FreeCamera FreeCamera
View MapView

Remarks

See mln_map_snapshot in the C API reference.

Properties

Bounds

public CameraBounds Bounds { get; init; }

Property Value

CameraBounds

DebugFlags

public MapDebugFlag DebugFlags { get; init; }

Property Value

MapDebugFlag

EventMask

public RuntimeEventFlag EventMask { get; init; }

Property Value

RuntimeEventFlag

FreeCamera

public FreeCamera FreeCamera { get; init; }

Property Value

FreeCamera

FullyLoaded

Whether the style and every resource that the view needs have loaded.

public bool FullyLoaded { get; init; }

Property Value

bool

Generation

Grows with each change to the map's state.

public ulong Generation { get; init; }

Property Value

ulong

GestureInProgress

public bool GestureInProgress { get; init; }

Property Value

bool

LatestRenderUpdateGeneration

Counts the render updates that the map has made for its render session.

public ulong LatestRenderUpdateGeneration { get; init; }

Property Value

ulong

RenderingStatsViewEnabled

public bool RenderingStatsViewEnabled { get; init; }

Property Value

bool

Tile

public MapTileSettings Tile { get; init; }

Property Value

MapTileSettings

TransitionInProgress

public bool TransitionInProgress { get; init; }

Property Value

bool

View

public MapView View { get; init; }

Property Value

MapView