The Near Me widget should dynamically respect the visibility state of layers as toggled in the Map Layers widget. Currently, even when a layer is hidden from view, the Near Me widget continues to query it — even with “Display all layer results, regardless of visibility” disabled. This breaks intuitive user expectations and limits dynamic workflows.
In ArcGIS Experience Builder, users often toggle layer visibility using the Map Layers widget to control what is shown on the map. However, the Near Me widget continues to include features from these hidden layers in its analysis, regardless of visibility state.
This behaviour is especially problematic when building interactive apps where users expect that hiding a layer will also exclude it from analysis. For example, if a user hides the Cattle Holdings layer, they expect Near Me to exclude it from results — but it still selects features from that layer.
Even when the “Display all layer results, regardless of visibility” option is turned off, the widget still queries hidden layers unless they are hidden in the underlying web map — which is not practical for dynamic, user-driven apps.
Proposed Solution
- Make the Near Me widget respect the visibility state of layers as toggled in the Map Layers widget.
- Ensure that when “Display all layer results, regardless of visibility” is disabled, the widget only queries layers that are actively visible in the map.
- Optionally, allow developers to bind visibility logic between widgets for more dynamic control.