Hello!!!
I'm hoping this is a very easy fix, it seems very straightforward. I'm trying to have layer visibility toggled off until one of the features in the layer is selected in the list widget. Basically so that it can show only 1 feature at a time. A lot of the features overlap, so that's why I want it to be toggled off until a feature is selected so that it can show only 1 feature at any time.
Let me know if anyone needs any further details.
Thanks!!
I think you can achieve this with the Message action combined with the Data Filter.
You need to set your layer to appear empty by going to the Map Widget settings and applying a dummy filter (such as OBJECTID = -1) under the Filter tab.
Navigate to the List Widget settings, open the Action tab, and add a trigger for Record selection changes targeting your Map Widget.
Select the Filter Data Records action and ensure the data source matches.
You can find more details from the ESRI documentation below:
https://doc.arcgis.com/en/experience-builder/latest/configure-widgets/action-triggers.htm
Please let me know if this helps you.
When you say map widget settings, are you talking about the settings on the layer in the map, shown here?
Or do you mean within the map data actions here?
Or on the map specifically itself?
The 1st image is correct and should work.
Hmm it seems like whenever I set the filter on the layer specifically in that data tab, it does cease to show up on the map. However, the data action does not override it, so it just does nothing when selected in the list. This did seem promising though, it just seems like the layer stays filtered by the object id = -1, and ignores the data action filter.
Do you have time for a call? If yes, you can book a time using the link in my signature.
You need to do 3 items to get it working.
This video shows how to configure and match with your requirements.
https://youtu.be/Keoq_aV2O2A
Unfortunately I do not have time for a call, thank you for offering though! Is there any chance you could outline those 3 steps for me in order to get it working?