process

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

Asynchronously loads the provided GeoJSON or TopoJSON data, without 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 process(data: String, options: GeoJsonDataSource.Companion.LoadOptions? = definedExternally): GeoJsonDataSource(source)
suspend fun process(data: Any, options: GeoJsonDataSource.Companion.LoadOptions? = definedExternally): GeoJsonDataSource(source)