@maplibre/native-ffi
    Preparing search index...

    Variable RuntimeEventTypeConst

    RuntimeEventType: {
        mapCameraDidChange: 3;
        mapCameraIsChanging: 2;
        mapCameraWillChange: 1;
        mapGlyphsError: 22;
        mapGlyphsLoaded: 21;
        mapGlyphsRequested: 20;
        mapIdle: 8;
        mapLoadingFailed: 7;
        mapLoadingFinished: 6;
        mapLoadingStarted: 5;
        mapRenderError: 9;
        mapRenderFrameFinished: 11;
        mapRenderFrameStarted: 10;
        mapRenderMapFinished: 13;
        mapRenderMapStarted: 12;
        mapSourceChanged: 16;
        mapSpriteError: 25;
        mapSpriteLoaded: 24;
        mapSpriteRequested: 23;
        mapStyleImageMissing: 14;
        mapStyleLoaded: 4;
        mapTileAction: 15;
        offlineRegionResponseError: 18;
        offlineRegionStatusChanged: 17;
        offlineRegionTileCountLimitExceeded: 19;
    } = ...

    The kind of an event.

    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.setOfflineRegionObserved() selects.

    See mln_runtime_event_type in the C API reference.

    Type Declaration

    • ReadonlymapCameraDidChange: 3
    • ReadonlymapCameraIsChanging: 2
    • ReadonlymapCameraWillChange: 1
    • ReadonlymapGlyphsError: 22
    • ReadonlymapGlyphsLoaded: 21
    • ReadonlymapGlyphsRequested: 20
    • ReadonlymapIdle: 8

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

    • ReadonlymapLoadingFailed: 7

      The map failed to load a style.

    • ReadonlymapLoadingFinished: 6

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

    • ReadonlymapLoadingStarted: 5

      The map started to load a style.

    • ReadonlymapRenderError: 9
    • ReadonlymapRenderFrameFinished: 11
    • ReadonlymapRenderFrameStarted: 10
    • ReadonlymapRenderMapFinished: 13
    • ReadonlymapRenderMapStarted: 12
    • ReadonlymapSourceChanged: 16

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

    • ReadonlymapSpriteError: 25
    • ReadonlymapSpriteLoaded: 24
    • ReadonlymapSpriteRequested: 23
    • ReadonlymapStyleImageMissing: 14

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

    • ReadonlymapStyleLoaded: 4
    • ReadonlymapTileAction: 15

      A tile moved to another step of loading.

    • ReadonlyofflineRegionResponseError: 18

      A resource that the region needs failed to download.

    • ReadonlyofflineRegionStatusChanged: 17
    • ReadonlyofflineRegionTileCountLimitExceeded: 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.