Button that closes layer but to multiple other layers?
Not sure if this is possible but thought I'd ask.
So I have attached an example of what I am trying to do so it might make more sense! I have multiple layers with a table button on and this leads to a table layer. On the table layer I have a close button that I want to when clicked close back to the layer that I clicked the table button on.
E.g. I am on Layer 1 and click the table button, then I click the close button on the table layer and it returns me to layer 1. Then if I am on layer 3 and click the table button I want the close button on the table layer to go back to layer 3 when I click the close button.
In the example I just have the close button hiding the layer but this obviously isn't what I want. The only thing I can think of is multiple table layers?