How to stop the Layer Toggle Button from closing my eSearch widget? After I toggle on/off a layer, the eSearch widget is closed. I have to click on eSearch again to bring it back up. (The search results are still there when I click eSearch to reopen it).
Solved! Go to Solution.
You would have to more the eSearch widget or your layerToggleButton widget to a different widget group. What i mean by this is if you are using the default foldable theme and have the eSearch in an on screen widget placeholder and the layertoggle button(s) also in an onscreen widget place holder, then only one widget in the onscreen widget place holder can be open at a time so the toggle would close the eSearch. But if you had the eSearch or the Toggle button in the header controller and the other in an onscreen widget place holder slot then you problem is solved.
You would have to more the eSearch widget or your layerToggleButton widget to a different widget group. What i mean by this is if you are using the default foldable theme and have the eSearch in an on screen widget placeholder and the layertoggle button(s) also in an onscreen widget place holder, then only one widget in the onscreen widget place holder can be open at a time so the toggle would close the eSearch. But if you had the eSearch or the Toggle button in the header controller and the other in an onscreen widget place holder slot then you problem is solved.
Perfect, I moved Toggle Button to the Header Controller Group. Problem solved. Thank you!
Hi,
How to move LayerToggle widget in headercontroller for foldable theme?
Where to add in config.json ?
Thanks,
@MayurDodiya Just use the "Choose Widget" UI in WAB to add another Layer Toggle widget to the Header Controller widget.