<?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 Re: copy layers between webmaps? in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/copy-layers-between-webmaps/m-p/797325#M1877</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/20360" target="_blank"&gt;FC Basson&lt;/A&gt;‌, thanks, that works great. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now what if I want to tinker with the properties of the layer a bit? The following code prepends some text to the title and turns the layer off, but is that the best way? &lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; layer &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; webmap1&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;definition&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'operationalLayers'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
    layer&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'title'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'Region F - '&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; layer&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'title'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
    layer&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'visibility'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token boolean"&gt;False&lt;/SPAN&gt;
    webmap2&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;definition&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'operationalLayers'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;append&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;layer&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason I ask is that in my debugger, if I look at WebMap.layers['operationalLayers'], each layer in the list is of type &lt;SPAN style="font-family: courier new, courier, monospace; color: #800000;"&gt;arcgis._impl.common._mixins.PropertyMap&lt;/SPAN&gt;. When I see leading underscores in the package structure, I assume they don't want me to play with that too much.That said, the &lt;A href="https://developers.arcgis.com/python/api-reference/arcgis.mapping.html#arcgis.mapping.WebMap.layers" rel="nofollow noopener noreferrer" target="_blank"&gt;API docs&lt;/A&gt; say each layer is a dict, and as I loop through the elements in the list, those show they are type dict. Is the code above the best way to modify individual layer properties within the context of the solution you provided? thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 09:13:03 GMT</pubDate>
    <dc:creator>davedoesgis</dc:creator>
    <dc:date>2021-12-12T09:13:03Z</dc:date>
    <item>
      <title>copy layers between webmaps?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/copy-layers-between-webmaps/m-p/797323#M1875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;SHORT VERSION:&lt;/STRONG&gt; I have a webmap for a national set of layers, plus several webmaps containing regional data sets. My goal is to start with the national webmap and add in the layers from the relevant regional webmap for the area where we're working at the moment. I want to save the combined layers from both webmaps to a new webmap. I have figured out how to trace each layer from one webmap back to its source and add that to the other webmap, but this loses any settings that were made in the webmap (e.g.: symbology). How do I merge the layers in two webmaps while preserving the webmap's settings? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LONG VERSION:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I get each webmap as an arcgis.gis.Item and cast it to an arcgis.mapping.WebMap. My regional WebMap object is called &lt;SPAN style="font-family: courier new, courier, monospace;"&gt;reg_webmap&lt;/SPAN&gt;, and I loop through the layers like this:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;for layer in reg_webmap.layers:&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &lt;SPAN style="font-family: courier new, courier, monospace;"&gt;layer&lt;/SPAN&gt; object in the loop is of type PropertyMap. Is there anything I can do with those objects directly to add them to another WebMap? I would like to copy them over with any custom symbology and settings for opacity, title, visibility, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried two different methods of adding the regional WebMap's &lt;SPAN style="font-family: courier new, courier, monospace;"&gt;layer&lt;/SPAN&gt; objects to the national WebMap:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;If I add a hosted feature service to the regional WebMap: As I loop through the layers, each &lt;SPAN style="font-family: courier new, courier, monospace;"&gt;layer&lt;/SPAN&gt; object has an itemID, which links me back to the hosted feature layer. I can create an Item object which I can add to the national WebMap.&lt;/LI&gt;&lt;LI&gt;If I add layers one-by-one to the regional WebMap using the layer-specific URL: The &lt;SPAN style="font-family: courier new, courier, monospace;"&gt;layer&lt;/SPAN&gt; won't have an itemID, but will have an URL, which is used to create a FeatureLayer object, which I can add to the national WebMap object.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In either case, the problem is that I'm NOT adding the layer from one WebMap to the other WebMap. Instead, I am using the layers in one WebMap to find their source, and then adding that to the other WebMap. While the end result works, any custom settings in the regional webmap (i.e.: symbology, title, opacity, visibility) are not reflected. In the output. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Dec 2019 01:07:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/copy-layers-between-webmaps/m-p/797323#M1875</guid>
      <dc:creator>davedoesgis</dc:creator>
      <dc:date>2019-12-04T01:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: copy layers between webmaps?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/copy-layers-between-webmaps/m-p/797324#M1876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This sounds like a job for the &lt;A href="https://developers.arcgis.com/python/" rel="nofollow noopener noreferrer" target="_blank"&gt;Python API&lt;/A&gt;.&amp;nbsp; Once you have installed the Conda environment and Jupyter Notebook, it's fairly easy to access and manage items such as layers and web maps.&amp;nbsp; Have a look at &lt;A _jive_internal="true" href="https://community.esri.com/thread/215655-copy-operational-layers-object-from-one-web-map-to-another" target="_blank"&gt;this blog post&lt;/A&gt; for a similar question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could achieve copying layers from one Web Map to another in ArcGIS Online with the following code:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; arcgis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;gis &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;
gis &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; GIS&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;username&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"username"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; password&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"password"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; IPython&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;display &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; display
items &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; gis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;content&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;search&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;query&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"title:Map* AND owner:username"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; item_type&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Web Map"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; item &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; items&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;item&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;title &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;": "&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; item&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;id&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# select Web Maps from item id&lt;/SPAN&gt;
mapitem1 &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; gis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;content&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;get&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'&amp;lt;Item ID of source Web Map&amp;gt;'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
display&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;mapitem1&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

mapitem2 &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; gis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;content&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;get&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'&amp;lt;Item ID of destination Web Map&amp;gt;'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
display&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;mapitem2&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# get Web Map Objects&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; arcgis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;mapping &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; WebMap
wmo1 &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; WebMap&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;mapitem1&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
wmo2 &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; WebMap&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;mapitem2&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# output operational layers&lt;/SPAN&gt;
wmo1&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;definition&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'operationalLayers'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
wmo2&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;definition&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'operationalLayers'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# copy second layer from first WM to second WM&lt;/SPAN&gt;
wmo2&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;definition&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'operationalLayers'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;append&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;wmo1&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;definition&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'operationalLayers'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
wmo2&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;update&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
wmo2&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;definition&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'operationalLayers'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 09:13:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/copy-layers-between-webmaps/m-p/797324#M1876</guid>
      <dc:creator>FC_Basson</dc:creator>
      <dc:date>2021-12-12T09:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: copy layers between webmaps?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/copy-layers-between-webmaps/m-p/797325#M1877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/20360" target="_blank"&gt;FC Basson&lt;/A&gt;‌, thanks, that works great. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now what if I want to tinker with the properties of the layer a bit? The following code prepends some text to the title and turns the layer off, but is that the best way? &lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; layer &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; webmap1&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;definition&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'operationalLayers'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
    layer&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'title'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'Region F - '&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; layer&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'title'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
    layer&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'visibility'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token boolean"&gt;False&lt;/SPAN&gt;
    webmap2&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;definition&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'operationalLayers'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;append&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;layer&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason I ask is that in my debugger, if I look at WebMap.layers['operationalLayers'], each layer in the list is of type &lt;SPAN style="font-family: courier new, courier, monospace; color: #800000;"&gt;arcgis._impl.common._mixins.PropertyMap&lt;/SPAN&gt;. When I see leading underscores in the package structure, I assume they don't want me to play with that too much.That said, the &lt;A href="https://developers.arcgis.com/python/api-reference/arcgis.mapping.html#arcgis.mapping.WebMap.layers" rel="nofollow noopener noreferrer" target="_blank"&gt;API docs&lt;/A&gt; say each layer is a dict, and as I loop through the elements in the list, those show they are type dict. Is the code above the best way to modify individual layer properties within the context of the solution you provided? thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 09:13:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/copy-layers-between-webmaps/m-p/797325#M1877</guid>
      <dc:creator>davedoesgis</dc:creator>
      <dc:date>2021-12-12T09:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: copy layers between webmaps?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/copy-layers-between-webmaps/m-p/797326#M1878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think your method for setting individual layer properties is incorrect.&amp;nbsp; The only other way I could think of changing the dictionary item properties would be with a more simplified syntax e.g.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; layer &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; webmap1&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;definition&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;operationalLayers&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
   layer&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;title &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'Region F - '&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; layer&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;title
   layer&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;visibility &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token boolean"&gt;False&lt;/SPAN&gt;
   webmap2&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;definition&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;operationalLayers&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;append&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;layer&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 09:13:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/copy-layers-between-webmaps/m-p/797326#M1878</guid>
      <dc:creator>FC_Basson</dc:creator>
      <dc:date>2021-12-12T09:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: copy layers between webmaps?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/copy-layers-between-webmaps/m-p/1346644#M9249</link>
      <description>&lt;P&gt;Tried this sample, but it fails in the last two lines:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-online-questions/running-python-code-to-add-layers-form-one-web-map/m-p/1346295" target="_blank"&gt;Running Python code to add layers form one web map... - Esri Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2023 13:10:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/copy-layers-between-webmaps/m-p/1346644#M9249</guid>
      <dc:creator>SanchezNuñez</dc:creator>
      <dc:date>2023-11-07T13:10:31Z</dc:date>
    </item>
  </channel>
</rss>

