Variable MapRegionsNorthAmericaConst

MapRegionsNorthAmerica: {
    Anguilla: Country;
    Antigua and Barbuda: Country;
    Barbados: Country;
    Bermuda: Country;
    British Virgin Islands: Country;
    Canada: Country;
    Cayman Islands: Country;
    Cuba: Country;
    Dominica: Country;
    Dominican Republic: Country;
    Greenland: Country;
    Grenada: Country;
    Haiti: Country;
    Jamaica: Country;
    Mexico: Country;
    Montserrat: Country;
    Puerto Rico: Country;
    Saint Kitts and Nevis: Country;
    Saint Lucia: Country;
    Saint Martin: Country;
    Saint Pierre and Miquelon: Country;
    Saint Vincent and the Grenadines: Country;
    The Bahamas: Country;
    Trinidad and Tobago: Country;
    Turks and Caicos Islands: Country;
    United States Virgin Islands: Country;
    United States of America: Country;
} = ...

List of MapRegions included in MapTypes.NorthAmerica.

Can be referenced like so:

const countries = MapRegions[ MapTypes.NorthAmerica ]

Each item is an enum-like object, that can be used with MapChart API to specify any region.

Example usage:

  • Invalidate selected region value.
 MapChart.invalidateRegionValues([
{ ...MapRegions[ MapTypes.NorthAmerica ].Panama, value: 0 }
])
  • List all region names (can be useful when developing a js application without intellisense).
 Object.keys( MapRegions[ MapTypes.NorthAmerica ] ).forEach( key => console.log( key ) )

Note, that the list includes all countries that are visible on the MapChart, some of which are outside the continent of North America.

Type declaration