load
suspend fun load(data: Resource, options: KmlDataSource.ConstructorOptions? = definedExternally): KmlDataSource(source)
Creates a Promise to a new instance loaded with the provided KML data.
Return
A promise that will resolve to a new KmlDataSource instance 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.ConstructorOptions? = definedExternally): KmlDataSource(source)
suspend fun load(data: Document, options: KmlDataSource.ConstructorOptions? = definedExternally): KmlDataSource(source)
suspend fun load(data: Blob, options: KmlDataSource.ConstructorOptions? = definedExternally): KmlDataSource(source)