load

suspend fun load(data: Any, options: GpxDataSource.LoadOptions? = definedExternally): GpxDataSource(source)

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

Return

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

Parameters

data

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

See also