Recently, I encountered an issue with my custom search bar overlapping some controls on my map. Despite adjusting the z-index of these controls, they continued to stay on top. To work around this problem, I thought about hiding the controls during the search process. However, I couldn't find a way to dynamically remove or hide them.
Does anyone have a creative solution for this dilemma? Whether it involves adding and removing the controls, hiding them temporarily, or properly adjusting their z-index, any suggestions would be appreciated.