Class

LoadingProgressTracker

LoadingProgressTracker(emit)

Tracks the first map-content load and emits loading_progress / content_ready. Progress never goes backwards. Reports after complete are ignored until reset(). If the first load never finishes, complete is forced after timeoutMs so a host splash cannot hang forever.

Constructor

# new LoadingProgressTracker(emit)

Parameters:
Name Type Description
emit

Called as emit(eventName, payload).

options.timeoutMs

Force complete after this many ms. 0 disables the watchdog.

Classes

LoadingProgressTracker

Methods

# dispose()

Cancel the first-load watchdog. Call from deallocate().

# report()

Advance to a phase if it is at or past the current one.

# reset()

Start a new initial-load cycle (for example after the API key changes).