did anyone build or find a solution for changing a listitem's parent and sublayers' visible when it is clicked in layerlist widget?
I'm not quite sure what you're trying to do, but each ListItem has a reference to its parent and children you can interact with. This demo does that.
Hi，Thanks for your reply. When a listitem's visibile is changed to true, it has looped to walk through the parent setting visible attribute to true，but as the same time, I want to set it's all children's visible attribute to true. How to do this？
In that sample you can just loop through the children and set their visibility too.