Skip to content

fix(country-map): Malawi map - add missing Karonga district, de-duplicate Chitipa - #42842

Open
denys1204 wants to merge 1 commit into
apache:masterfrom
SolDevelo:fix/malawi-map-karonga
Open

fix(country-map): Malawi map - add missing Karonga district, de-duplicate Chitipa#42842
denys1204 wants to merge 1 commit into
apache:masterfrom
SolDevelo:fix/malawi-map-karonga

Conversation

@denys1204

Copy link
Copy Markdown

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:
  • Changes UI
  • Includes DB Migration
  • Introduces new feature or API
  • Removes existing feature or API

…cate Chitipa

Signed-off-by: Denys Mamchura <denys.work.ua@gmail.com>
@dosubot dosubot Bot added the viz:charts:map Related to Map charts label Aug 6, 2026
@bito-code-review

bito-code-review Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Bito Review Skipped - No Changes Detected

Bito didn't review this pull request because we did not detect any changes in the pull request to review.

@netlify

netlify Bot commented Aug 6, 2026

Copy link
Copy Markdown

Deploy Preview for superset-docs-preview ready!

Name Link
🔨 Latest commit 7aac1a2
🔍 Latest deploy log https://app.netlify.com/projects/superset-docs-preview/deploys/6a7484e6f0b6a60009380936
😎 Deploy Preview https://deploy-preview-42842--superset-docs-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant