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

Update map UI #141

Merged
merged 9 commits into from
Nov 29, 2024
Merged

Update map UI #141

merged 9 commits into from
Nov 29, 2024

Conversation

jdudley1123
Copy link
Member

@jdudley1123 jdudley1123 commented Nov 29, 2024

Changes in this PR

This PR updates the map's UI to show pollution scores along with zone labels. This required adding a new API endpoint /pollutant_forecasts to provide the values to the map.

Trello: https://trello.com/c/uLIXdskr/131-show-aq-index-on-the-map-in-place-of-the-labels-see-figma

Screenshots of UI changes

Before

image

After

image

This style was inadvertently removed in a previous commit.
@jdudley1123 jdudley1123 changed the title Map UI Update map UI Nov 29, 2024
Controls are now on the left and the DAQI scale is on the right
Previously we were calculating these from the bounds, but they were a bit off. By specifying them explicitly we have more control and it decouples the two tasks of adding zone boundaries to the map and adding zone labels to the map.
This method allows us to fetch the latest forecast for all zones at once, which we will want to do when displaying forecast data on the map.
This endpoint allows the map to fetch pollution data to display.
Rather than create the zone labels together with the zone boundaries, we now split these two processes up so that markers can be updated on each refresh using data from the API.
How was it even working in production before??
@jdudley1123 jdudley1123 merged commit d372cac into develop Nov 29, 2024
2 checks passed
@jdudley1123 jdudley1123 deleted the map-ui branch November 29, 2024 22:04
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