GeoJsonSourceState

fun GeoJsonSourceState(sourceId: String = generateRandomSourceId("geojson"), initialData: GeoJSONData = GeoJSONData.default, initialProperties: List<Triple<String, Boolean, Value>> = emptyList())

Parameters

sourceId

The id of the source state, by default a random generated ID will be used.

initialProperties

The initial mutable properties of the source.

initialData

The initial GeoJSONData of the source.