ITDP / atlas

The frontend code for the Atlas of Urban Transport
MIT License
0 stars 0 forks source link

Variable text does not always update when switching indicators after switching cities #92

Closed dtreich-itdp closed 2 months ago

dtreich-itdp commented 5 months ago

I think this bug is more general, but I'll express it as a single example of what I did that caused it:

  1. Open the Atlas
  2. Select the Population Density indicator
  3. Select Washington DC (by clicking on the map)
  4. Use the drop-down to switch the city to Mexico City
  5. Use the drop-down to switch the indicator to People Near Protected Bikelanes
  6. The variable values in the left-hand panel are incorrect
    • The indicator short description is still given as "Mexico City has a weighted population density of 14.3k people per km2"
    • The variable values in the main text are wrong: "In Mexico City, X % of residents live within a 300m walk of any bikeway, protected or unprotected. Of those, 1429820 % live within a 300m walk of a physically-protected bikeway. In Mexico City, there are X kilometers of bikeways, of which X are physically-protected."

Screenshot from 2024-02-05 15-14-58

kauebraga commented 4 months ago

I couldn't replicate this one! It works fine when I do the same thing you did. Probably I fixed it before but didn't push the changes? I will push the modifications e let you know so you can test again.