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
DebugFlagsMapDebugFlagGenerationulongGrows with each change to the map's state.
FullyLoadedboolWhether the style and every resource that the view needs have loaded.
RenderingStatsViewEnabledboolGestureInProgressboolTransitionInProgressboolEventMaskRuntimeEventFlagLatestRenderUpdateGenerationulongCounts the render updates that the map has made for its render session.
TileMapTileSettingsBoundsCameraBoundsFreeCameraFreeCameraViewMapView
Remarks
See mln_map_snapshot in the C API reference.
Properties
Bounds
public CameraBounds Bounds { get; init; }
Property Value
DebugFlags
public MapDebugFlag DebugFlags { get; init; }
Property Value
EventMask
public RuntimeEventFlag EventMask { get; init; }
Property Value
FreeCamera
public FreeCamera FreeCamera { get; init; }
Property Value
FullyLoaded
Whether the style and every resource that the view needs have loaded.
public bool FullyLoaded { get; init; }
Property Value
Generation
Grows with each change to the map's state.
public ulong Generation { get; init; }
Property Value
GestureInProgress
public bool GestureInProgress { get; init; }
Property Value
LatestRenderUpdateGeneration
Counts the render updates that the map has made for its render session.
public ulong LatestRenderUpdateGeneration { get; init; }
Property Value
RenderingStatsViewEnabled
public bool RenderingStatsViewEnabled { get; init; }
Property Value
Tile
public MapTileSettings Tile { get; init; }
Property Value
TransitionInProgress
public bool TransitionInProgress { get; init; }
Property Value
View
public MapView View { get; init; }