openoakland / woeip

A platform for impacted communities to understand their local air quality and advocate for environmental justice.
https://woaq.org
MIT License
29 stars 16 forks source link

331 dot attributes #429

Closed mnorelli closed 2 years ago

mnorelli commented 2 years ago

Checklist

Description

Issue: #331 Show values and colors for points on the map

Brief description of solution Implementing the ReactJS onHover wrapper for the same Mapbox function, this code gathers an object of point data under the mouse hover, including their pollutant values and timestamps, and displays a popup box showing the most recently collected point and its pollutant value along a colorbar of EPA categories. If the zoom level creates a large enough hover radius, the popup box also shows the next five points in that radius. If more than six points are in the hover collection, only their count is listed.

Adding support for mobile, click events, and additional EPA background information, requested in this ticket, has not yet been addressed.

Failed tests

Not sure how to address three (3) front-end test failures related to src/components/upload/drop.test.js, code not addressed or edited in this issue.