Class: GeojsonLayerConvertionStrategy

GeojsonLayerConvertionStrategy

Strategy for converting GeoJSON layers to Mapbox format.

new GeojsonLayerConvertionStrategy()

MapboxViewer/infrastructure/strategies/layers/GeojsonLayerConvertionStrategy.ts, line 21

Methods

canHandle(layer)

MapboxViewer/infrastructure/strategies/layers/GeojsonLayerConvertionStrategy.ts, line 33

Checks if this strategy can handle the layer.

Name Type Description
layer

The layer to check.

Returns:
True if can handle.

asyncconvert(map, layer)

MapboxViewer/infrastructure/strategies/layers/GeojsonLayerConvertionStrategy.ts, line 43

Converts a GeoJSON layer to Mapbox format.

Name Type Description
map

The Mapbox map.

layer

The layer to convert.

Returns:
The conversion result.