flywave-mapview.textureloader.load
Home > @flywave/flywave-mapview > TextureLoader > load
TextureLoader.load() method
Load an image from url and create a texture
Signature:
load(url: string, requestHeaders?: RequestHeaders | undefined, abortSignal?: AbortSignal, crossOrigin?: boolean): Promise<THREE.Texture>;
Parameters
Parameter | Type | Description |
|---|---|---|
url | string | URL to the image |
requestHeaders | RequestHeaders | undefined | (Optional) Optional request headers to load image(e.g. Authorization) |
abortSignal | AbortSignal | (Optional) Optional AbortSignal to cancel the load. |
crossOrigin | boolean | (Optional) Enable/disable CORS |
Returns:
Promise<THREE.Texture>