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.
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.