<?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 Add a Feature Layer Collection to an existing WebMap in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/add-a-feature-layer-collection-to-an-existing/m-p/1147924#M7165</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I want to add a Feature Layer Collection to an existing WebMap. My WebMap already has layers, but I want to add the ones on my Feature Layer Collection. I tried using 'add_layer' but I get the following error:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;AttributeError&lt;/SPAN&gt;: 'list' object has no attribute 'add_layer'&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# get webmap
dispatchers_map = gis.content.search(f'title:{name_project} Dispatcher Map', 
                                    'Web Map',
                                    outside_org=False)

# get feature layer collection
f_layer = gis.content.search(f'title:{pr_layer}', 
                                    'Feature layer',
                                    outside_org=False)

# add flc to webmap
dispatchers_map.add_layer(f_layer)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Fri, 25 Feb 2022 11:05:33 GMT</pubDate>
    <dc:creator>MVAC</dc:creator>
    <dc:date>2022-02-25T11:05:33Z</dc:date>
    <item>
      <title>Add a Feature Layer Collection to an existing WebMap</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/add-a-feature-layer-collection-to-an-existing/m-p/1147924#M7165</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I want to add a Feature Layer Collection to an existing WebMap. My WebMap already has layers, but I want to add the ones on my Feature Layer Collection. I tried using 'add_layer' but I get the following error:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;AttributeError&lt;/SPAN&gt;: 'list' object has no attribute 'add_layer'&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# get webmap
dispatchers_map = gis.content.search(f'title:{name_project} Dispatcher Map', 
                                    'Web Map',
                                    outside_org=False)

# get feature layer collection
f_layer = gis.content.search(f'title:{pr_layer}', 
                                    'Feature layer',
                                    outside_org=False)

# add flc to webmap
dispatchers_map.add_layer(f_layer)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 11:05:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/add-a-feature-layer-collection-to-an-existing/m-p/1147924#M7165</guid>
      <dc:creator>MVAC</dc:creator>
      <dc:date>2022-02-25T11:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: Add a Feature Layer Collection to an existing WebMap</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/add-a-feature-layer-collection-to-an-existing/m-p/1147995#M7167</link>
      <description>&lt;P&gt;I found the way &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# using WebMap to use my web map
dispatcher_map = WebMap(disp_map)
print(dispatcher_map)

# add_layer
dispatcher_map.add_layer(f_layer[0])

# properties
webmap_item_properties = {'title':'name of existing Web Map'}

# update web map
dispatcher_map.update(webmap_item_properties)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 14:34:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/add-a-feature-layer-collection-to-an-existing/m-p/1147995#M7167</guid>
      <dc:creator>MVAC</dc:creator>
      <dc:date>2022-02-25T14:34:50Z</dc:date>
    </item>
  </channel>
</rss>

