StyleState

The state holder for the Style.

Constructors

Link copied to clipboard

Construct a default StyleState.

Properties

Link copied to clipboard

The atmosphere to be set to the map. By default, no changes to the current atmosphere.

Link copied to clipboard

The lights to be set to the map. By default, no changes to the current lights defined in style.

Link copied to clipboard

The projection to be set to the map. Defaults to Projection.INITIAL meaning that projection value is taken from the style definition.

Link copied to clipboard

The style import configurations for all the style imports in the style. You can use styleImportsConfig to create it.

Link copied to clipboard

The StyleInteractionsState manages the map interactions defined for the style.

Link copied to clipboard

Transition options applied when loading the style.

Link copied to clipboard

The terrain to be set to the map. Defaults to initial state meaning no custom terrain is added, default value is taken from style definition.