Const
MapTypes pairing with a list of MapRegions the MapType includes.
For example, when using MapType.Europe, the list of available countries can be referenced with:
const countries = MapRegions[ MapTypes.Europe ]
Each item is an enum-like object, that can be used with MapChart API to specify any region.
Example usage:
MapChart.invalidateRegionValues([ { ...MapRegions[ MapTypes.Europe ].Finland, value: 0 } ])
Object.keys( MapRegions[ MapTypes.Europe ] ).forEach( key => console.log( key ) )
MapRegionsAfrica
MapRegionsAsia
MapRegionsAustralia
MapRegionsCanada
MapRegionsEurope
MapRegionsNorthAmerica
MapRegionsSouthAmerica
MapRegionsUSA
MapRegionsWorld
MapTypes pairing with a list of MapRegions the MapType includes.
For example, when using MapType.Europe, the list of available countries can be referenced with:
Each item is an enum-like object, that can be used with MapChart API to specify any region.
Example usage: