load

suspend fun load(data: Resource, options: GeoJsonDataSource.Companion.LoadOptions? = definedExternally): GeoJsonDataSource(source)

Asynchronously loads the provided GeoJSON or TopoJSON data, replacing any existing data.

Return

a promise that will resolve when the GeoJSON 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)