-
Notifications
You must be signed in to change notification settings - Fork 272
fix(legacy-plugin-chart-country-map): higher quality geojson and re-arrange controls #1045
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/superset/superset-ui/AnHkbRj3rugKp1VV95ou1DZveaWS |
Codecov Report
@@ Coverage Diff @@
## master #1045 +/- ##
==========================================
+ Coverage 27.74% 28.07% +0.33%
==========================================
Files 428 436 +8
Lines 8758 8904 +146
Branches 1314 1357 +43
==========================================
+ Hits 2430 2500 +70
- Misses 6155 6217 +62
- Partials 173 187 +14
Continue to review full report at Codecov.
|
For example, Belgium, OLD
NEW
|
Adding just
I don't think they matter much with gzip, but sure I can remove them for cleanliness. |
I meant could you confirm all the new files have field
Some clean up would be nice. |
@kristw I did update the JavaScript a little to improve error-handling. Would you like to take another look? |
lgtm |
@ktmud This has removed several states of India. Example: Telangana (IN-TG . Incorrectly labelled as IN-AN previously) India Map data can be found in - https://github.com/datameet/maps with CC BY 4.0 license |
@j-manu Do you mind working on a PR to get this fixed? It should be easy to edit the Jupyter notebook and swap the geometry accordingly. |
@ktmud I haven't worked with Jupyter / superset or GeoJSON. I'm a user of superset via docker and did some digging because the version I have has Telangana labelled incorrectly. Then I discovered this commit which removed Telangana completely It will be easier if I can assist you in fixing this.
I'm not sure how (2)can be solved. The ISO codes can be found here - https://www.iso.org/obp/ui#iso:code:3166:IN |
@junlincc Does Preset has resource to pick this up? |
🏆 Enhancements
🐛 Bug Fix
Programmatically generate higher-quality GeoJSON files for country maps as noted in #955 (comment)
Updated all current GeoJSON files, as well as the Storybook.
Check the Jupyter notebook for details.
This should fix #569, as well as apache/superset#12987, apache/superset#4568, apache/superset#11666, and maybe more...
Next step is to update the Country Map Tools doc in Superset.