load

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

Asynchronously loads the provided KML data, replacing any existing data.

Return

A promise that will resolve to this instances once the KML is loaded.

Parameters

data

A url, parsed KML document, or Blob containing binary KMZ data or a parsed KML document.

options

An object specifying configuration options

See also


suspend fun load(data: String, options: KmlDataSource.Companion.LoadOptions? = definedExternally): KmlDataSource(source)
suspend fun load(data: Document, options: KmlDataSource.Companion.LoadOptions? = definedExternally): KmlDataSource(source)
suspend fun load(data: Blob, options: KmlDataSource.Companion.LoadOptions? = definedExternally): KmlDataSource(source)