load
suspend fun load(data: Resource, options: GeoJsonDataSource.Companion.LoadOptions? = definedExternally): GeoJsonDataSource(source)
Creates a Promise to a new instance loaded with the provided GeoJSON or TopoJSON data.
Return
A promise that will resolve when the data is loaded.
Parameters
data
A url, GeoJSON object, or TopoJSON object to be loaded.
options
An object specifying configuration options
See also
suspend fun load(data: String, options: GeoJsonDataSource.Companion.LoadOptions? = definedExternally): GeoJsonDataSource(source)
suspend fun load(data: Any, options: GeoJsonDataSource.Companion.LoadOptions? = definedExternally): GeoJsonDataSource(source)