<?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 WAB - How to iterate through the layers and refresh the map in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/wab-how-to-iterate-through-the-layers-and-refresh/m-p/629264#M16671</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have to refresh the map by iterating through all the layers in the map. How to do that?&lt;/P&gt;&lt;P&gt;Is there a method to get all the layers from this.map. I&amp;nbsp;want to do something like below:&lt;BR /&gt;var layers = this.map._layers; // need to get all the layers?&lt;BR /&gt;array.forEach(layers, function (layer) {&lt;BR /&gt;layer.refresh();&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Apr 2018 13:30:28 GMT</pubDate>
    <dc:creator>esriuser2</dc:creator>
    <dc:date>2018-04-03T13:30:28Z</dc:date>
    <item>
      <title>WAB - How to iterate through the layers and refresh the map</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/wab-how-to-iterate-through-the-layers-and-refresh/m-p/629264#M16671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have to refresh the map by iterating through all the layers in the map. How to do that?&lt;/P&gt;&lt;P&gt;Is there a method to get all the layers from this.map. I&amp;nbsp;want to do something like below:&lt;BR /&gt;var layers = this.map._layers; // need to get all the layers?&lt;BR /&gt;array.forEach(layers, function (layer) {&lt;BR /&gt;layer.refresh();&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2018 13:30:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/wab-how-to-iterate-through-the-layers-and-refresh/m-p/629264#M16671</guid>
      <dc:creator>esriuser2</dc:creator>
      <dc:date>2018-04-03T13:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: WAB - How to iterate through the layers and refresh the map</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/wab-how-to-iterate-through-the-layers-and-refresh/m-p/629265#M16672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The &lt;A href="https://developers.arcgis.com/web-appbuilder/api-reference/layerstructure.htm"&gt;LayerStructure&lt;/A&gt; class gives you the ability to iterate through all the layers in your map.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2018 14:12:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/wab-how-to-iterate-through-the-layers-and-refresh/m-p/629265#M16672</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2018-04-03T14:12:23Z</dc:date>
    </item>
  </channel>
</rss>

