I used WAB for ArcGIS (not the Developer version) to configure one of my first apps. The Near Me widget is not behaving the way I would expect it to.
When using the widget, it returns any features within the searchable layers but draws almost ALL the layers, regardless of whether any results were returned. Once the widget is closed, all these layers stay on. The only layers that are not turned on are where the group layer was turned off by default. I have attached screen images of before and after using Near Me.
Ideally, only the layers that return a search result should be visible while the widget is in use...and I would prefer it if the layers would return to the state that they were in prior to using Near Me. All the layers are published in a single map service. I have read about other workarounds (including duplicating 'invisible' layers for Near Me) but these are not desirable.
This question may be related to these posts, but haven't solved my problem:
https://esri.jiveon.com/ideas/13025-agol-wab-near-me-widget-dont-turn-on-new-layers
https://community.esri.com/thread/191769-wab-near-me-widget-layers-stay-on-after-use#
Any advice appreciated.
Sandra