denys1204 opened a new pull request, #42842:
URL: https://github.com/apache/superset/pull/42842
### SUMMARY
The bundled Malawi map in `legacy-plugin-chart-country-map` is missing the
Karonga district (`MW-KR`) and has Chitipa (`MW-CT`) duplicated, so Karonga
always renders blank on the Malawi Country Map regardless of the data.
`malawi.geojson` has 28 features but only 27 unique ISO codes: `MW-CT`
appears twice and `MW-KR` is absent. Malawi has 28 districts and ISO 3166-2:MW
includes `MW-KR` (Karonga), so one of the two `MW-CT` features is mislabeled.
Of the two `{ "ISO": "MW-CT", "NAME_1": "Chitipa" }` features, the eastern
polygon is geographically Karonga, not Chitipa:
- Eastern polygon: centroid ≈ 33.98°E, −9.95°S (reaches the Lake Malawi
shore ~34.6°E), which matches Karonga town (33.93°E, −9.93°S).
- Western polygon: centroid ≈ 33.39°E, −9.82°S (NW, inland), which matches
Chitipa town (33.27°E, −9.70°S).
The fix relabels that one polygon's properties and leaves the geometry
untouched: `{ "ISO": "MW-CT", "NAME_1": "Chitipa" }` becomes `{ "ISO": "MW-KR",
"NAME_1": "Karonga" }`.
It's a one-line label correction on existing data, with no new geometry and
no licensing change. All 28 districts now have unique ISO codes, and Karonga
renders.
### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
_Malawi Country Map: Karonga is blank before the fix, shaded after._
### TESTING INSTRUCTIONS
Render any chart with `viz_type: country_map` and `select_country: malawi`.
Karonga (far north, on the lakeshore) is now shaded instead of blank, and no
district is duplicated.
### ADDITIONAL INFORMATION
- [ ] Has associated issue:
- [ ] Required feature flags:
- [x] Changes UI
- [ ] Includes DB Migration
- [ ] Introduces new feature or API
- [ ] Removes existing feature or API
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]