Home > @magiclane/maps-sdk > MapDetails > getCountryFlagImg
MapDetails.getCountryFlagImg() method
Get the country flag image by ISO code as an Img.
Prefer Img when you need SDK-managed metadata (uid, recommended size/aspectRatio, scalability) or to request raw image bytes; use getCountryFlag when you only need raw image bytes.
Signature:
static getCountryFlagImg(countryCode: string): Img | undefined;Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
countryCode |
string |
ISO 3166-1 alpha-3 code |
Returns:
Img | undefined
The Img object representing the flag, or undefined if not available