bpda-research-division / neighborhood-change

Explore historical change in Boston's neighborhoods through dynamic visualizations (R Shiny)
https://bpda-research.shinyapps.io/neighborhood-change/
GNU General Public License v2.0
2 stars 2 forks source link

dynamically update selected-polygon tooltips #56

Closed mciethan closed 9 months ago

mciethan commented 9 months ago

fixes #53 by using the setShapeLabels function on the selected-polygons layer in response to the year being changed by the user. Moves the code that defines tooltip labels out of the indicator observer and into the areas_summary_df reactive, preserving the existing tooltip functionality on non-selected polygons, and then adds a line to the yearSelect observer to filter areas_summary_df to the selected year and apply its label text to the labels of the selected-polygon layer, fixing the issue with the selected-polygon tooltips.