Skip to main content

StyleSpecificationComposer

A stateful class for composing a style specification.

Constructors

new StyleSpecificationComposer()

new StyleSpecificationComposer(spec): StyleSpecificationComposer

Parameters

ParameterType
specStyleSpecificationComposition

Returns

StyleSpecificationComposer

Properties

layersList

layersList: LayerSpecificationList;

light

light: LightSpecification;

sky

sky: SkySpecification;

sources

sources: TileSetSourceRecord;

terrain

terrain: TerrainSpecification;

Accessors

layers

get layers(): LayerSpecificationListItem[]

Returns

LayerSpecificationListItem[]

Methods

toJS()

toJS(): StyleSpecification

Returns

StyleSpecification


toJSON()

toJSON(): StyleSpecification

Returns

StyleSpecification