<?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 Forcing a Map Layers visibility update in ArcGIS Experience Builder Questions</title>
    <link>https://community.esri.com/t5/arcgis-experience-builder-questions/forcing-a-map-layers-visibility-update/m-p/1295764#M7148</link>
    <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;I've built a custom widget that is based upon the Views Navigation Widget.&amp;nbsp; &amp;nbsp;I set a number of data filters and turn a variety of layers on/off depending upon which view the user selects.&amp;nbsp; &amp;nbsp;Everything works great and the legend updates as I turn on/off the layers.&amp;nbsp; &amp;nbsp;However, the map layers widget does not update and the view state for the layers I change, programmatically, don't allow me to use the widget to allow the user to change the visibility.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Here is a quick snippet for the layer visibility code:&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;tempJimuLayerView&lt;/SPAN&gt;&lt;SPAN&gt; &amp;amp;&amp;amp; &lt;/SPAN&gt;&lt;SPAN&gt;tempJimuLayerView&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;layer&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;title&lt;/SPAN&gt;&lt;SPAN&gt; == &lt;/SPAN&gt;&lt;SPAN&gt;"SomeLayerName"&lt;/SPAN&gt;&lt;SPAN&gt; )&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;tempJimuLayerView&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;view&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;visible&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;true&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;SPAN&gt;I attempted to use the widgetmanager, but haven't been successful.&amp;nbsp; &amp;nbsp; Any other ideas or suggestions?&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 05 Jun 2023 12:53:31 GMT</pubDate>
    <dc:creator>PaulNRWA</dc:creator>
    <dc:date>2023-06-05T12:53:31Z</dc:date>
    <item>
      <title>Forcing a Map Layers visibility update</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/forcing-a-map-layers-visibility-update/m-p/1295764#M7148</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;I've built a custom widget that is based upon the Views Navigation Widget.&amp;nbsp; &amp;nbsp;I set a number of data filters and turn a variety of layers on/off depending upon which view the user selects.&amp;nbsp; &amp;nbsp;Everything works great and the legend updates as I turn on/off the layers.&amp;nbsp; &amp;nbsp;However, the map layers widget does not update and the view state for the layers I change, programmatically, don't allow me to use the widget to allow the user to change the visibility.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Here is a quick snippet for the layer visibility code:&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;tempJimuLayerView&lt;/SPAN&gt;&lt;SPAN&gt; &amp;amp;&amp;amp; &lt;/SPAN&gt;&lt;SPAN&gt;tempJimuLayerView&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;layer&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;title&lt;/SPAN&gt;&lt;SPAN&gt; == &lt;/SPAN&gt;&lt;SPAN&gt;"SomeLayerName"&lt;/SPAN&gt;&lt;SPAN&gt; )&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;tempJimuLayerView&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;view&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;visible&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;true&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;SPAN&gt;I attempted to use the widgetmanager, but haven't been successful.&amp;nbsp; &amp;nbsp; Any other ideas or suggestions?&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 05 Jun 2023 12:53:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/forcing-a-map-layers-visibility-update/m-p/1295764#M7148</guid>
      <dc:creator>PaulNRWA</dc:creator>
      <dc:date>2023-06-05T12:53:31Z</dc:date>
    </item>
  </channel>
</rss>

