Closed rudokemper closed 3 months ago
@IamJeffG any opinions on the legend styling here? (Note that it's quite tricky to really do justice to how a polygon might look on a map, considering that the shape of a polygon could be just about anything!)
Looks great! I absolutely love the polygon blob icons!
My one suggestion would to be use shades in the same color family for related information. For example the 3 polygons for mining (2019-2022; previous alerts; latest alerts) are each chosen from:
And if it ends up looking ugly on the map, then feel free to disregard.
Closes https://github.com/ConservationMetrics/guardianconnector-views/issues/43.
Goal
To add alerts from the Alerts Dashboard component to the Map Legend, and to improve the legend graphic for polygons and point geometries.
Screenshots
Linestring alerts - before & after
Polygon alerts - before & after
What I changed
otherAlerts
topreviousAlerts
in a bunch of places for purposes of clear and consistent naming. Also renamedrecentAlerts
tomostRecentAlerts
.AlertsDashboard
component, add the alerts map legend layer IDs to be included in the string of layer IDs to be processed byprepareMapLegendLayers
.