<?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 How do you add a layer into a group layer in ArcGIS Online using Python? in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-do-you-add-a-layer-into-a-group-layer-in/m-p/831614#M3189</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am writing a Python script to add a batch of (many) layers to an existing web scene on ArcGIS Online. All the layers are already hosted, so I'm just going to get each layer by it's item ID and add it to the web scene.&amp;nbsp;Each layer needs to be added to a particular group layer in the scene. So basically I'm iterating through a CSV file with item IDs in one column and the name of the group layer in another column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that there doesn't seem to be an easy way in the ArcGIS API to add a layer to a group layer in ArcGIS Online. What I'm really looking for is an arcgis equivalent to the arcpy function &lt;A href="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-mapping/addlayertogroup.htm"&gt;AddLayerToGroup&lt;/A&gt;. An alternate approach might be to add the layer and then move it to the correct group layer, but again I'm not sure if this is doable.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Sep 2018 20:15:52 GMT</pubDate>
    <dc:creator>DanielCassiday</dc:creator>
    <dc:date>2018-09-27T20:15:52Z</dc:date>
    <item>
      <title>How do you add a layer into a group layer in ArcGIS Online using Python?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-do-you-add-a-layer-into-a-group-layer-in/m-p/831614#M3189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am writing a Python script to add a batch of (many) layers to an existing web scene on ArcGIS Online. All the layers are already hosted, so I'm just going to get each layer by it's item ID and add it to the web scene.&amp;nbsp;Each layer needs to be added to a particular group layer in the scene. So basically I'm iterating through a CSV file with item IDs in one column and the name of the group layer in another column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that there doesn't seem to be an easy way in the ArcGIS API to add a layer to a group layer in ArcGIS Online. What I'm really looking for is an arcgis equivalent to the arcpy function &lt;A href="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-mapping/addlayertogroup.htm"&gt;AddLayerToGroup&lt;/A&gt;. An alternate approach might be to add the layer and then move it to the correct group layer, but again I'm not sure if this is doable.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2018 20:15:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-do-you-add-a-layer-into-a-group-layer-in/m-p/831614#M3189</guid>
      <dc:creator>DanielCassiday</dc:creator>
      <dc:date>2018-09-27T20:15:52Z</dc:date>
    </item>
  </channel>
</rss>

