url

fun url(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