The data/countries/
directory provides a minimal dataset of countries used to power both map-based and list-based components in the application. It merges geographic metadata with human-readable names to support UI interactions.
This module is responsible for parsing and exposing a list of countries derived from the countries.geo.json
file. It extracts:
USA
, FRA
)This ensures consistent identification of countries across both the map (CountriesLayer
) and UI controls like CountrySelector
.
countries.geo.json
A GeoJSON file with country shapes and properties, including ISO alpha-3 identifiers and names.
Source: mapsam/gist
countries.ts
{ code, name }
objects. These are used throughout the app as the canonical country reference.Each entry in the exported countries
array has the shape:
{
code: 'BRA', // ISO alpha-3 code (uppercase)
name: 'Brazil' // Common English name
}
Used in: