Skip to content

SourceModel

Defined in: packages/core/src/model/types.ts:54

A source, split into what MapLibre receives and what drives our own machinery.

spec is handed to map.addSource and, later, copied into the emitted style. runtime holds the live-data configuration, which degrades to snapshot-on-load when a document is compiled rather than rendered.

PropertyTypeDescriptionDefined in
runtimeRecord<string, unknown>Live-data configuration: refresh, stream, cache, loading, prefetch.packages/core/src/model/types.ts:58
specRecord<string, unknown>Keys MapLibre understands — the erasable half.packages/core/src/model/types.ts:56