ParkingReformNetwork / reform-map

A map of where parking reforms have happened.
https://parkingreform.org/mandates-map/
MIT License
6 stars 8 forks source link

Country counter should be based on matched countries, not selected countries #561

Open Eric-Arellano opened 1 day ago

Eric-Arellano commented 1 day ago

Imagine you have all countries selected as valid in the filter group, but other filter options mean only one country is actually chosen. We will incorrectly claim the map is showing 16 countries.

This needs to be more robust to track in state the matched countries:

https://github.com/ParkingReformNetwork/reform-map/blob/aa0da7560469b78f04197dfab145efa298b28e20/src/js/counters.ts#L15-21