This is an automated email from the ASF dual-hosted git repository.

rusackas pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/master by this push:
     new ee23690196 feat: add France's regions to country map visualization 
(#25676)
ee23690196 is described below

commit ee2369019694c55111bf4030e808cf6fd1fbf315
Author: David Meaux <[email protected]>
AuthorDate: Fri Oct 20 01:30:34 2023 +0200

    feat: add France's regions to country map visualization (#25676)
---
 .../legacy-plugin-chart-country-map/src/countries.ts |  5 +++++
 .../src/countries/france_regions.geojson             | 20 ++++++++++++++++++++
 2 files changed, 25 insertions(+)

diff --git 
a/superset-frontend/plugins/legacy-plugin-chart-country-map/src/countries.ts 
b/superset-frontend/plugins/legacy-plugin-chart-country-map/src/countries.ts
index 8f070a4391..25696d85a6 100755
--- a/superset-frontend/plugins/legacy-plugin-chart-country-map/src/countries.ts
+++ b/superset-frontend/plugins/legacy-plugin-chart-country-map/src/countries.ts
@@ -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)];
 });
 
diff --git 
a/superset-frontend/plugins/legacy-plugin-chart-country-map/src/countries/france_regions.geojson
 
b/superset-frontend/plugins/legacy-plugin-chart-country-map/src/countries/france_regions.geojson
new file mode 100644
index 0000000000..8ce046b786
--- /dev/null
+++ 
b/superset-frontend/plugins/legacy-plugin-chart-country-map/src/countries/france_regions.geojson
@@ -0,0 +1,20 @@
+{
+"type": "FeatureCollection",
+"name": "france_regions",
+"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:EPSG::2154" 
} },
+"features": [
+{ "type": "Feature", "properties": { "NAME_1": "Occitanie", "ISO": "FR-OCC" }, 
"geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 
714082.300000000046566, 6149839.0 ], [ 714103.199999999953434, 
6149842.799999998882413 ], [ 714137.700000000069849, 6149800.000000000931323 ], 
[ 714089.0, 6149796.5 ], [ 714020.0, 6149857.899999997578561 ], [ 
714021.199999999953434, 6149872.900000000372529 ], [ 714046.199999999953434, 
6149873.099999998696148 ], [ 714082.300000000046566, 6149839.0 ] ] [...]
+{ "type": "Feature", "properties": { "NAME_1": "Centre-Val de Loire", "ISO": 
"FR-CVL" }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 
604790.400000000023283, 6831645.79999999795109 ], [ 605439.0, 
6831434.099999998696148 ], [ 606090.300000000046566, 6831022.099999998696148 ], 
[ 606383.699999999953434, 6831310.599999999627471 ], [ 606421.5, 6831283.0 ], [ 
606471.800000000046566, 6831336.199999998323619 ], [ 606804.800000000046566, 
6830984.899999999441206 ], [ 607245.0, 6831 [...]
+{ "type": "Feature", "properties": { "NAME_1": "Normandie", "ISO": "FR-NOR" }, 
"geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 
345452.900000000081491, 6874148.900000000372529 ], [ 345439.199999999953434, 
6874179.099999997764826 ], [ 345399.799999999988358, 6874205.099999997764826 ], 
[ 345439.900000000081491, 6874242.099999997764826 ], [ 345461.900000000081491, 
6874171.699999998323619 ], [ 345452.900000000081491, 6874148.900000000372529 ] 
] ], [ [ [ 345264.699999999953434, 68 [...]
+{ "type": "Feature", "properties": { "NAME_1": "Nouvelle-Aquitaine", "ISO": 
"FR-NAQ" }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 
315561.300000000104774, 6265249.599999999627471 ], [ 315497.899999999906868, 
6265355.899999996647239 ], [ 315529.300000000046566, 6265337.999999998137355 ], 
[ 315570.599999999976717, 6265340.29999999795109 ], [ 315588.5, 
6265256.999999999068677 ], [ 315561.300000000104774, 6265249.599999999627471 ] 
] ], [ [ [ 315497.899999999906868, 6265355. [...]
+{ "type": "Feature", "properties": { "NAME_1": "Grand Est", "ISO": "FR-GES" }, 
"geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 
761994.599999999976717, 6921309.400000000372529 ], [ 761841.199999999953434, 
6921236.399999998509884 ], [ 761840.800000000046566, 6921252.79999999795109 ], 
[ 761774.900000000023283, 6921225.400000000372529 ], [ 761709.599999999976717, 
6921235.099999998696148 ], [ 761608.5, 6921282.599999997764826 ], [ 
761479.400000000023283, 6921362.999999999068677 ] [...]
+{ "type": "Feature", "properties": { "NAME_1": "Provence-Alpes-Côte d'Azur", 
"ISO": "FR-PAC" }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 
868809.099999999860302, 6249523.300000001676381 ], [ 868809.199999999953434, 
6249466.70000000204891 ], [ 868797.899999999906868, 6249464.900000002235174 ], 
[ 868786.900000000139698, 6249502.399999998509884 ], [ 868809.099999999860302, 
6249523.300000001676381 ] ] ], [ [ [ 876814.800000000162981, 
6250320.099999998696148 ], [ 876795.0,  [...]
+{ "type": "Feature", "properties": { "NAME_1": "Auvergne-Rhône-Alpes", "ISO": 
"FR-ARA" }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 
654467.0, 6522631.600000000558794 ], [ 654463.900000000023283, 
6522662.900000000372529 ], [ 654430.0, 6522655.299999996088445 ], [ 
654396.699999999953434, 6522701.099999998696148 ], [ 654375.200000000069849, 
6522674.699999998323619 ], [ 654346.699999999953434, 6522696.29999999795109 ], 
[ 654350.300000000046566, 6522729.299999998882413 ], [ [...]
+{ "type": "Feature", "properties": { "NAME_1": "Bourgogne-Franche-Comté", 
"ISO": "FR-BFC" }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 
713198.800000000046566, 6808419.100000000558794 ], [ 713215.5, 
6808367.999999998137355 ], [ 713239.0, 6808395.399999999441206 ], [ 
713261.199999999953434, 6808394.399999999441206 ], [ 713416.0, 
6808253.499999998137355 ], [ 713550.800000000046566, 6807984.79999999795109 ], 
[ 713539.5, 6807977.799999999813735 ], [ 713673.800000000046566,  [...]
+{ "type": "Feature", "properties": { "NAME_1": "Pays de la Loire", "ISO": 
"FR-PDL" }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 
287935.400000000197906, 6638650.100000001490116 ], [ 287931.5, 
6638668.199999999254942 ], [ 287960.000000000174623, 6638660.800000000745058 ], 
[ 287953.099999999976717, 6638637.299999999813735 ], [ 287951.0, 
6638624.400000000372529 ], [ 287928.200000000069849, 6638613.799999998882413 ], 
[ 287915.900000000081491, 6638643.900000000372529 ], [ 28 [...]
+{ "type": "Feature", "properties": { "NAME_1": "Hauts-de-France", "ISO": 
"FR-HDF" }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 
597711.599999999976717, 7030041.199999998323619 ], [ 597813.900000000023283, 
7030041.400000000372529 ], [ 597807.5, 7030012.199999998323619 ], [ 
597770.900000000023283, 7030001.199999999254942 ], [ 597739.699999999953434, 
7030010.900000001303852 ], [ 597716.099999999976717, 7029991.799999998882413 ], 
[ 597697.800000000046566, 7029953.5999999968 [...]
+{ "type": "Feature", "properties": { "NAME_1": "Bretagne", "ISO": "FR-BRE" }, 
"geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 
126517.599999999860302, 6798016.499999997206032 ], [ 126474.100000000209548, 
6798041.599999999627471 ], [ 126448.099999999743886, 6798120.099999995902181 ], 
[ 126473.299999999930151, 6798117.199999999254942 ], [ 126432.299999999930151, 
6798178.699999998323619 ], [ 126411.400000000139698, 6798141.0 ], [ 
126367.700000000069849, 6798149.000000000931323 ] [...]
+{ "type": "Feature", "properties": { "NAME_1": "Corse", "ISO": "FR-20R" }, 
"geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 
1172143.199999999720603, 6089404.400000000372529 ], [ 1172159.2, 
6089397.699999999254942 ], [ 1172146.299999999813735, 6089375.299999999813735 
], [ 1172124.3, 6089392.099999999627471 ], [ 1172143.199999999720603, 
6089404.400000000372529 ] ] ], [ [ [ 1176699.300000000279397, 
6091817.900000000372529 ], [ 1176713.0, 6091827.599999998696148 ], [ 
1176711.1000 [...]
+{ "type": "Feature", "properties": { "NAME_1": "Île-de-France", "ISO": 
"FR-IDF" }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 
636273.400000000023283, 6899469.200000000186265 ], [ 636249.199999999953434, 
6899588.399999999441206 ], [ 636388.300000000046566, 6899628.199999998323619 ], 
[ 636431.0, 6899647.599999998696148 ], [ 636431.699999999953434, 
6899668.599999998696148 ], [ 636625.099999999976717, 6899548.399999999441206 ], 
[ 636576.699999999953434, 6899441.399999998509 [...]
+]
+}

Reply via email to