Home > @magiclane/maps-sdk > Landmark > getExtraImage

Landmark.getExtraImage() method

Retrieves the landmark's secondary (extra) image as raw bytes.

The returned bytes may be null when no extra image exists. The caller is responsible for validating and decoding the bytes. For higher-level handling use extraImg which returns an Img wrapper.

Signature:

getExtraImage(size?: Size, format?: ImageFileFormat, allowResize?: boolean): Uint8Array | null;

Parameters

Parameter

Type

Description

size

Size

(Optional) Optional desired image size. If omitted, original size is used.

format

ImageFileFormat

(Optional) Optional ImageFileFormat describing preferred format.

allowResize

boolean

(Optional)

Returns:

Uint8Array | null

Raw image bytes, or null when no image is available.