Home > @magiclane/maps-sdk > CountryData > (constructor)
CountryData.(constructor)
Creates a CountryData instance.
API users do not typically construct this object directly.
Signature:
constructor(name: string, isoCode: string, flagImage?: Img | undefined);Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
name |
string |
Human-readable country name |
|
isoCode |
string |
ISO 3166-1 alpha-3 country code (e.g. |
|
flagImage |
Img | undefined |
(Optional) Optional flag image object; undefined when not present |