featureCollection

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

Add a FeatureCollection to the GeojsonSource.

Parameters

value

the feature collection

dataId

optional metadata to filter the SOURCE_DATA_LOADED events later. Empty string is treated as no data id.