Help! How to allow a user to toggle a layer ON/OFF
Hello! I hope someone can help me with this. I have created an interaction (see attached) where I want users to press a button that makes a layer visible - I was able to do that. Now I would like the user to click the same button to make the same layer invisible. Basically, I am looking to create an ON/OFF button. Is it possible to create this?
(I know I could create a second button that could say HIDE, and put a trigger on that to hide the layer), but that does not have the simplicity of the ON/OFF button.
I would appreciate anyone who could help me with this.