Companion

external object Companion(source)

Functions

Link copied to clipboard
suspend external fun loadImage(imageryProvider: ImageryProvider, url: Resource): JsAny?

Loads an image from a given URL. If the server referenced by the URL already has too many requests pending, this function will instead return undefined, indicating that the request should be retried later.

suspend external fun loadImage(imageryProvider: ImageryProvider, url: String): JsAny?
Link copied to clipboard
external fun loadImageAsync(imageryProvider: ImageryProvider, url: Resource): Promise<JsAny>?
external fun loadImageAsync(imageryProvider: ImageryProvider, url: String): Promise<JsAny>?