I am new to ArcGIS Experience Builder Developer Edition and I am stuck in (I suppose) a fairly simply matter.
I am trying to turn on/off a number of layers (or map services) clicking on a button. I was able to implement this task in Web AppBuilder, but I can't figure out how to do it in Experience Builder.
In the settings.tsx of the widget I selected which elements to turn on/off using the Data Source Selector, but I don't understand how to use them in the widget.tsx.
Can anyone tell me if I am on the right track and/or how to proceed further?
You will need to access the layerViews that are within the mapView and change their properties.
Thanks for the answer!
Is there a way to use the Data Source Selector to get the layerViews? If the answer is "no", is there another out-of-the-box component that can do the task?