Class: LayerStyleConverter

LayerStyleConverter

Converts layer options into Mapbox style configurations.

new LayerStyleConverter(_styleFactory)

MapboxViewer/infrastructure/adapters/style-converters/LayerStyleConverter.ts, line 6

Creates a LayerStyleConverter instance.

Name Type Description
_styleFactory

The style factory to use.

Methods

convert(map, layerOpts)

MapboxViewer/infrastructure/adapters/style-converters/LayerStyleConverter.ts, line 26

Converts layer options into a Mapbox style configuration.

Name Type Description
map

The Mapbox map instance.

layerOpts

The options for the layer, including style configurations.

Returns:
A style conversion result compatible with Mapbox.