Filters a tree structure of layers based on a search query. Updates the visibility of layers matching the search text.
The tree structure of layers to filter.
The text query used to filter the layers.