For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.
Class StyleLayerIndex
Index
Constructors
constructor
- new StyleLayerIndex(
layerConfigs?: LayerSpecification[] | null,
globalState?: Record<string, any>,
): StyleLayerIndexParameters
OptionallayerConfigs: LayerSpecification[] | nullOptionalglobalState: Record<string, any>
Returns StyleLayerIndex
Methods
replace
Parameters
- layerConfigs: LayerSpecification[]
OptionalglobalState: Record<string, any>
Returns void
update
- update(
layerConfigs: LayerSpecification[],
removedIds: string[],
globalState?: Record<string, any>,
): voidParameters
- layerConfigs: LayerSpecification[]
- removedIds: string[]
OptionalglobalState: Record<string, any>
Returns void