Skip to content

Add geographic map#314

Open
andrew0796 wants to merge 3 commits intomainfrom
add-geographic-map
Open

Add geographic map#314
andrew0796 wants to merge 3 commits intomainfrom
add-geographic-map

Conversation

@andrew0796
Copy link
Copy Markdown

Description

Resolves #303

Adds a geographic map to the actions page showing the locations of agenda items when geographic data is available in the database. The map also has a "search this area" feature where the items shown in the results list below can be filtered to be those in the current map in addition to those items which do not have a geographic location associated to them.

Before:
image

After:
image

I'm unsure about styling of the map, which is all done in AgendaItemList.tsx. Specifically, I have the map at a fixed 350px height right now, but I can imagine that might not work for all devices, so some direction there would be nice.

Testing instructions

The map should show all of the items currently shown in the results list which have geographic data. If more items are loaded or if filters are applied, the map should update accordingly. The "search this area" button should appear at the top of the map when the map is moved/zoomed, and if clicked should update the items shown in the results list below - if anywhere else on the map is clicked the button should disappear. Additionally, the button should reappear if the map has been moved/zoomed again.

Checklist

  • This PR addresses all requirements described in the issue
  • I have commented my code, particularly in hard-to-understand areas
  • I have performed a self-review of my code
  • I have tested these changes in the preview deployment
  • I have made corresponding changes to the documentation (if relevant)

@github-actions
Copy link
Copy Markdown

🚀 Preview URL for this PR: https://04540253-civic-dashboard-web.civic-dashboard.workers.dev

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

Labels

None yet

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

Add map showing geography of council items

2 participants