feat: add France's regions to country map visualization (#25676)

This commit is contained in:
David Meaux 2023-10-20 01:30:34 +02:00 committed by GitHub
parent def7cd1b89
commit ee23690196
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 25 additions and 0 deletions

View File

@ -40,6 +40,7 @@ import el_salvador from './countries/el salvador.geojson';
import estonia from './countries/estonia.geojson';
import ethiopia from './countries/ethiopia.geojson';
import france from './countries/france.geojson';
import france_regions from './countries/france_regions.geojson';
import finland from './countries/finland.geojson';
import germany from './countries/germany.geojson';
import guatemala from './countries/guatemala.geojson';
@ -133,6 +134,7 @@ export const countries = {
estonia,
ethiopia,
france,
france_regions,
finland,
germany,
guatemala,
@ -210,6 +212,9 @@ export const countryOptions = Object.keys(countries).map(x => {
if (x === 'italy_regions') {
return [x, 'Italy (regions)'];
}
if (x === 'france_regions') {
return [x, 'France (regions)'];
}
return [x, x[0].toUpperCase() + x.slice(1)];
});

File diff suppressed because one or more lines are too long