Files
superset2/superset-frontend/plugins/plugin-chart-country-map/test/plugin
Superset Dev 610c435872 feat(plugin-chart-country-map): wire up the "Show flying islands" toggle end-to-end
The control was removed earlier because it was a documented no-op —
the build pipeline repositioned features per flying_islands.yaml but
didn't tag them, so the runtime drop logic had nothing to filter on.
Now actually functional:

- build.py: apply_flying_islands sets `_flying: true` on every feature
  it repositions (FRA's 5 DROMs, USA's Hawaii/Alaska/Puerto Rico, ESP
  Canary Islands, NOR Svalbard, PRT Madeira/Azores, etc.)
- controlPanel.tsx: re-add the `show_flying_islands` checkbox (default
  on, renderTrigger so the projection refits without re-querying)
- CountryMap.tsx: filterFeatures drops _flying-tagged features when the
  toggle is off; fit-to-selection projection automatically zooms to
  the remaining mainland
- types: declare optional `_flying` property
- Tests: assert control presence + default value; remove the
  intentionally-absent assertion
- Regenerated 5 admin1 files + the france_overseas composite to embed
  the new tags (only countries with flying_islands rules differ)

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-17 23:32:34 -07:00
..