Home > @magiclane/maps-sdk > MapDetails > getCountryFlagImgByIndex
MapDetails.getCountryFlagImgByIndex() method
Get the country flag image by index as an Img.
Prefer Img when you need SDK-managed metadata (uid, recommended size/aspectRatio, scalability) or to request raw image bytes; use getCountryFlagByIndex when you only need raw image bytes.
Signature:
static getCountryFlagImgByIndex(index: number): Img | undefined;Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
index |
number |
Country index |
Returns:
Img | undefined
An Img object when available, otherwise undefined