Home > @magiclane/maps-sdk > Img > fromAsset
Img.fromAsset() method
Creates an image from an asset
Signature:
static fromAsset(url: string): Promise<Img>;Parameters
Parameter | Type | Description |
|---|---|---|
url | string | The URL of the asset |
Returns:
Promise<Img>
A promise that resolves to an Img instance