When using draw.io can i create a link that will allow a button to switch a layer on and off without actually clicking on the layers area?

In the below picture I want the user to be able to click on the "Switch on or toggle layer 1" to make the "yellow" layer 1 box appear and disappear.

enter image description here

The lightbox in the image can also be opened here

1 Answer 1


Don't know if I really understand you but as far as I know, you can create a link on the object with the text "switch on or...." with the following text:


So whenever you click on the object, the layer will toggle visibility.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.