Skip to content

feat: improve map export layout and update vector panel state management - #906

Open
friedisplay wants to merge 5 commits into
testfrom
fix/deduplicate-ir-overlay-layers
Open

feat: improve map export layout and update vector panel state management#906
friedisplay wants to merge 5 commits into
testfrom
fix/deduplicate-ir-overlay-layers

Conversation

@friedisplay

Copy link
Copy Markdown
Collaborator

Summary
This PR improves the map export handler to ensure all selected vector species are correctly displayed in the exported map image. It also improves the legend layout so it scales cleanly with larger numbers of species without overlapping or being clipped.It also implements a redux function on the vector panel.

Changes
-Transformed the Vector Panel from a static to a dynamic list
-Implemented translations on the Panel

  • Improved handling of fallback categories such as other anopheles and other species.
  • Made the export legend layout dynamic by adjusting font size and spacing based on the number of active species.
  • Updated legend positioning to avoid overlap with the Vector Atlas logo.
  • Kept all changes limited to the export canvas without affecting the live map UI.

Testing

  • Verified that exports correctly display 31 selected species including 'other anopheles'
  • Confirmed fallback categories render correctly.
  • Confirmed the legend remains within the export image bounds across different viewport sizes.

@friedisplay
friedisplay requested a review from rogonion July 31, 2026 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant