Hello,
I know that the parameters of the app are very narrow, but please let me explain. I am building an app for our team where, on one of the tabs, we want to display the trap data, and/or the environmental data, on the same map. The user has a option of selecting whether to see both trap data and environmental data, or just the environmental data, through the checkbox. The idea is, if the checkbox is checked, both plots appear on the screen, otherwise only the plot with the trap data.
My problem is I am unable to do this. My code is below, which I am hoping makes more sense. I would be grateful for any help from here!