<?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 LayerInfos and Adding Layers in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/layerinfos-and-adding-layers/m-p/1138036#M21852</link>
    <description>&lt;P&gt;Does anyone know how LayerInfos relates to adding layers?&amp;nbsp; Can it be used to add a layer?&amp;nbsp; I tried adding a layer with map.addLayer and I noticed two things.&amp;nbsp; First, L&lt;SPAN&gt;ayerInfos&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;getLayerInfoArray&lt;/SPAN&gt;&lt;SPAN&gt;() returned the operational layers in the map from top to bottom, whereas the map.basemapLayerIds, map.layerIds, and map.graphicLayerIds all list the layers from bottom to top.&amp;nbsp; Second, after I added a new layer getLayerInfoArray returned the same results.&amp;nbsp; Is it static after the map loads or is there a way to make it update?&amp;nbsp; I noticed an addTable method, but I didn't see an addLayer method.&amp;nbsp; I just want to know if there is a proper way to use LayerInfos to dynamically add, access, and move layers and tables around the map.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 27 Jan 2022 19:25:37 GMT</pubDate>
    <dc:creator>NathanHeickLACSD</dc:creator>
    <dc:date>2022-01-27T19:25:37Z</dc:date>
    <item>
      <title>LayerInfos and Adding Layers</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/layerinfos-and-adding-layers/m-p/1138036#M21852</link>
      <description>&lt;P&gt;Does anyone know how LayerInfos relates to adding layers?&amp;nbsp; Can it be used to add a layer?&amp;nbsp; I tried adding a layer with map.addLayer and I noticed two things.&amp;nbsp; First, L&lt;SPAN&gt;ayerInfos&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;getLayerInfoArray&lt;/SPAN&gt;&lt;SPAN&gt;() returned the operational layers in the map from top to bottom, whereas the map.basemapLayerIds, map.layerIds, and map.graphicLayerIds all list the layers from bottom to top.&amp;nbsp; Second, after I added a new layer getLayerInfoArray returned the same results.&amp;nbsp; Is it static after the map loads or is there a way to make it update?&amp;nbsp; I noticed an addTable method, but I didn't see an addLayer method.&amp;nbsp; I just want to know if there is a proper way to use LayerInfos to dynamically add, access, and move layers and tables around the map.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jan 2022 19:25:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/layerinfos-and-adding-layers/m-p/1138036#M21852</guid>
      <dc:creator>NathanHeickLACSD</dc:creator>
      <dc:date>2022-01-27T19:25:37Z</dc:date>
    </item>
  </channel>
</rss>

