coverney / shared-mobility-app

This repo contains the code for a scooter and bikeshare app that could interface with Remix and allows people to investigate usage and estimated demand.
0 stars 0 forks source link

Change the order that maps get displayed in the DataVisualization page #7

Open coverney opened 3 years ago

coverney commented 3 years ago

Currently in DataVisualization.js the maps that get displayed are determined by the mapsToDisplay state variable, which is an array of variable names. When a user checks a new variable, the variable name gets appended to the end of mapsToDisplay and the map is generated at the end. This ordering might not be the most intuitive since users would have to scroll to see the newest map. Also, the order of the maps won't match the checkboxes. Some alternative ideas include

coverney commented 3 years ago

not addressing this issue yet, since one might want to re-structure the DataVisualization page first and re-size the maps