<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Programmatically change layer visibility in ArcGIS Experience Builder Questions</title>
    <link>https://community.esri.com/t5/arcgis-experience-builder-questions/programmatically-change-layer-visibility/m-p/1232029#M5759</link>
    <description>&lt;P&gt;You will need to access the layerViews that are within the mapView and change their properties.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 15 Nov 2022 23:14:58 GMT</pubDate>
    <dc:creator>UalasRohrer</dc:creator>
    <dc:date>2022-11-15T23:14:58Z</dc:date>
    <item>
      <title>Programmatically change layer visibility</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/programmatically-change-layer-visibility/m-p/1231229#M5740</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am new to ArcGIS Experience Builder Developer Edition and I am stuck in (I suppose) a fairly simply matter.&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;Can anyone tell me if I am on the right track and/or how to proceed further?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Marco Mattioli&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2022 14:14:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/programmatically-change-layer-visibility/m-p/1231229#M5740</guid>
      <dc:creator>MarcoMattioli</dc:creator>
      <dc:date>2022-11-14T14:14:53Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically change layer visibility</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/programmatically-change-layer-visibility/m-p/1232029#M5759</link>
      <description>&lt;P&gt;You will need to access the layerViews that are within the mapView and change their properties.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 23:14:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/programmatically-change-layer-visibility/m-p/1232029#M5759</guid>
      <dc:creator>UalasRohrer</dc:creator>
      <dc:date>2022-11-15T23:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically change layer visibility</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/programmatically-change-layer-visibility/m-p/1232130#M5764</link>
      <description>&lt;P&gt;Thanks for the answer!&lt;/P&gt;&lt;P&gt;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?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;Marco Mattioli&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 09:33:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/programmatically-change-layer-visibility/m-p/1232130#M5764</guid>
      <dc:creator>MarcoMattioli</dc:creator>
      <dc:date>2022-11-16T09:33:25Z</dc:date>
    </item>
  </channel>
</rss>

