featureCollection

fun featureCollection(value: FeatureCollection, dataId: String? = null): GeoJsonSource.Builder

Add a FeatureCollection to the GeojsonSource.

Parameters

value

the feature collection

dataId

optional metadata to filter the SOURCE_DATA_LOADED events later