Table of Contents

Enum RuntimeEventType

Namespace
Maplibre.NativeFfi
Assembly
Maplibre.NativeFfi.dll

The kind of an event.

public enum RuntimeEventType : uint

Fields

MapCameraDidChange = 3
MapCameraIsChanging = 2
MapCameraWillChange = 1
MapGlyphsError = 22
MapGlyphsLoaded = 21
MapGlyphsRequested = 20
MapIdle = 8

The map rendered a complete frame and has nothing left to load, animate, or redraw.

MapLoadingFailed = 7

The map failed to load a style.

MapLoadingFinished = 6

The map loaded its style and everything that the current view needs, and rendered the result.

MapLoadingStarted = 5

The map started to load a style.

MapRenderError = 9
MapRenderFrameFinished = 11
MapRenderFrameStarted = 10
MapRenderMapFinished = 13
MapRenderMapStarted = 12
MapSourceChanged = 16

A source in the style changed, such as when its TileJSON loads.

MapSpriteError = 25
MapSpriteLoaded = 24
MapSpriteRequested = 23
MapStyleImageMissing = 14

The style uses an image that it doesn't have.

MapStyleLoaded = 4
MapTileAction = 15

A tile moved to another step of loading.

OfflineRegionResponseError = 18

A resource that the region needs failed to download.

OfflineRegionStatusChanged = 17
OfflineRegionTileCountLimitExceeded = 19

The region's download became inactive because the cache file's offline regions hold as many tiles from MapLibre's demo tile server as the limit allows. Only tiles of sources with a maplibre:// URL count toward the limit.

Remarks

Only maps in MapMode.Continuous raise RuntimeEventType.MapLoadingFinished, RuntimeEventType.MapIdle, and the render frame and render map events. Offline region events come only for the regions and types that RuntimeHandle.SetOfflineRegionObservedAsync() selects.

See mln_runtime_event_type in the C API reference.