geometry

Add a Geometry to the GeojsonSource. If onDataParsed is provided and not null - data will be loaded in async mode. Otherwise method will be synchronous.

Parameters

onDataParsed

optional callback notifying when data is parsed on a worker thread

value

the feature collection

fun geometry(value: Geometry, onDataParsed: (GeoJsonSource) -> Unit?): GeoJsonSource