data

fun data(value: String, dataId: String? = null): GeoJsonSource

Parameters

value

an URL to a GeoJSON file, or an inline GeoJSON.

dataId

optional metadata to filter the SOURCE_DATA_LOADED events later

val data: String?

A URL to a GeoJSON file, or inline GeoJSON.

Note: Getter for plain Geojson string data is not supported due to performance consideration.