mirror of
https://github.com/apache/superset.git
synced 2024-09-18 11:39:49 -04:00
feat: added italian regions country map (#1319)
Co-authored-by: Roman Fedyna <r.fedyna@reply.it>
This commit is contained in:
parent
ff8979b46e
commit
a783131d7d
@ -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)];
|
||||
});
|
||||
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user