Skip to content

Commit

Permalink
feat: added italian regions country map (#1319)
Browse files Browse the repository at this point in the history
Co-authored-by: Roman Fedyna <r.fedyna@reply.it>
  • Loading branch information
2 people authored and zhaoyongjie committed Nov 26, 2021
1 parent ff8979b commit a783131
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -62,6 +63,7 @@ export const countries = {
indonesia,
iran,
italy,
italy_regions,
japan,
korea,
liechtenstein,
Expand Down Expand Up @@ -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)];
});

Expand Down

0 comments on commit a783131

Please sign in to comment.