Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FE] KBA Map layer #136

Open
01painadam opened this issue Jan 31, 2025 · 0 comments
Open

[FE] KBA Map layer #136

01painadam opened this issue Jan 31, 2025 · 0 comments
Assignees

Comments

@01painadam
Copy link
Collaborator

01painadam commented Jan 31, 2025

Goal

Implement a KBA vector layer in the existing map component, enabling users to visualise and interact with Key Biodiversity Areas (KBAs) within their portfolio.

Users should be able to:

  • View KBA boundaries as an overlay on the map
  • Hover over KBAs to display a tooltip with the KBA name

Designs

KBA Vector Layer

Layer Features

  • KBAs displayed as polygons over the base map
  • Tooltip on hover showing the KBA name
  • Consistent styling (e.g. boundary lines and fill opacity matching Alerting prototype)
  • Layer toggle to turn the KBA overlay on/off

Interaction

  • Hover interaction – Displays a tooltip with the KBA name

Scope

In Scope

  • Displaying KBAs as vector polygons on the existing map
  • Tooltip with KBA name on hover
  • Layer visibility toggle

Out of Scope

  • Sidebar with additional KBA details (future work)
  • Custom styling beyond predefined layer settings
  • Editing or modifying KBA geometries

Job Stories & Acceptance Criteria

Viewing KBAs on the Map

When I explore the map,
I want to see KBA boundaries overlaid on the base map,
So that I can visually locate protected areas within my portfolio.

Acceptance Criteria:

  • The KBA vector layer is correctly displayed on the map
  • KBAs align with the correct geographic locations

Interacting with KBAs

When I hover over a KBA,
I want to see a tooltip displaying the KBA name,
So that I can identify it without additional steps.

Acceptance Criteria:

  • Hovering over a KBA displays a tooltip with the correct name
  • Tooltip disappears when the cursor moves away

Toggling the KBA Layer

When I need to adjust the map view,
I want to toggle the KBA layer on or off,
So that I can control the visibility of the overlay.

Acceptance Criteria:

  • Users can toggle the KBA layer on and off
  • The toggle button updates the map accordingly

Risks & Questions

  • Does the map pane behave differently in this prototype?

Solution Hints

...

Future Work

Enhanced Interactions

  • Clicking on a KBA to open a sidebar with full details
  • Filtering KBAs by details
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

No branches or pull requests

2 participants