Control layer visibility from other DOM elements

Is there a way to take control over layer visibility from custom UI elements residing in a separate DOM element? Looked into the ui.min.js file but couldn’t find the corresponding function to call. Basically, I would like to recreate the functionality of this menu.

image

There is a small API that you can use. This is what the ui.min.js uses to turn things on and off.
For turning layers on and off you can use the following: http://mcneel.github.io/Iris/api#Iris.LayerOn

2 Likes

Thanks Luis! Exactly what I was looking for!

1 Like