Class: LayerConvertionFactory

LayerConvertionFactory

Factory for creating layer conversion strategies based on layer type.

new LayerConvertionFactory()

MapboxViewer/infrastructure/factories/LayerConvertionFactory.ts, line 16

Creates a LayerConvertionFactory instance.

Methods

canConvert(layer)

MapboxViewer/infrastructure/factories/LayerConvertionFactory.ts, line 57

Checks if a layer can be converted.

Name Type Description
layer

The layer to check.

Returns:
True if convertible.

getStrategy(layer)

MapboxViewer/infrastructure/factories/LayerConvertionFactory.ts, line 44

Gets the conversion strategy for a given layer.

Name Type Description
layer

The layer to convert.

Returns:
The strategy or null if not found.

registerStrategies()

MapboxViewer/infrastructure/factories/LayerConvertionFactory.ts, line 26

Registers all available conversion strategies.