IonResource
A Resource instance that encapsulates Cesium ion asset access. This object is normally not instantiated directly, use IonResource.fromAssetId.
Parameters
endpoint
The result of the Cesium ion asset endpoint service.
endpointResource
The resource used to retrieve the endpoint.
See also
Types
Functions
Link copied to clipboard
suspend fun fetchImage(options: IonResource.FetchImageOptions? = definedExternally): CanvasImageSource?
Asynchronously loads the given image resource. Returns a promise that will resolve to an ImageBitmap if preferImageBitmap
is true and the browser supports createImageBitmap
or otherwise an Image once loaded, or reject if the image failed to load.
Link copied to clipboard
fun fetchImageAsync(options: IonResource.FetchImageOptions? = definedExternally): Promise<CanvasImageSource>?