Home > @magiclane/maps-sdk > Landmark > setImage
Landmark.setImage() method
Sets the primary image for this landmark from raw image data.
Signature:
setImage(imageData: Uint8Array, format?: ImageFileFormat): void;Parameters
Parameter | Type | Description |
|---|---|---|
imageData | Uint8Array | The image data as Uint8Array. |
format | ImageFileFormat | (Optional) The image file format (defaults to PNG). |
Returns:
void