feat: added italian regions country map (#1319)

Co-authored-by: Roman Fedyna <r.fedyna@reply.it>
This commit is contained in:
Roman F 2021-09-27 07:53:16 +02:00 committed by Yongjie Zhao
parent ff8979b46e
commit a783131d7d
2 changed files with 31 additions and 0 deletions

View File

@ -17,6 +17,7 @@ import india from 'file-loader!./countries/india.geojson';
import indonesia from 'file-loader!./countries/indonesia.geojson';
import iran from 'file-loader!./countries/iran.geojson';
import italy from 'file-loader!./countries/italy.geojson';
import italy_regions from 'file-loader!./countries/italy_regions.geojson';
import japan from 'file-loader!./countries/japan.geojson';
import korea from 'file-loader!./countries/korea.geojson';
import liechtenstein from 'file-loader!./countries/liechtenstein.geojson';
@ -62,6 +63,7 @@ export const countries = {
indonesia,
iran,
italy,
italy_regions,
japan,
korea,
liechtenstein,
@ -93,6 +95,9 @@ export const countryOptions = Object.keys(countries).map(x => {
if (x === 'uk' || x === 'usa') {
return [x, x.toUpperCase()];
}
if (x === 'italy_regions') {
return [x, 'Italy (regions)'];
}
return [x, x[0].toUpperCase() + x.slice(1)];
});