<?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: reorder webmap layers with Python? in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/reorder-webmap-layers-with-python/m-p/1062849#M6143</link>
    <description>&lt;P&gt;This works. You need to be aware that the indexing starts at the bottom layer and not the top. The below will switch the bottom layer with the second last layer.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from arcgis import GIS

conn = GIS("home")

item = conn.content.get("wm_item_id")
item_data = item.get_data()

tmp = item_data['operationalLayers'][1]
item_data['operationalLayers'][1] = item_data['operationalLayers'][0]
item_data['operationalLayers'][0] = tmp
item_properties = {"text":item_data}
item.update(item_properties=item_properties)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 28 May 2021 14:00:51 GMT</pubDate>
    <dc:creator>Clubdebambos</dc:creator>
    <dc:date>2021-05-28T14:00:51Z</dc:date>
    <item>
      <title>reorder webmap layers with Python?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/reorder-webmap-layers-with-python/m-p/797542#M1894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd like to re-order webmap layers with Python.&amp;nbsp;I'm using the arcgis package (the ArcGIS API for Python) to add a layer, but the newest layer just goes to the top of the layer list (table of content), which may not be where I want it. How do I re-order it after I add it?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd also be interested to know if the WebMap.add_layer() function can just put the layer in the right order in the first place.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2020 00:17:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/reorder-webmap-layers-with-python/m-p/797542#M1894</guid>
      <dc:creator>davedoesgis</dc:creator>
      <dc:date>2020-04-08T00:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: reorder webmap layers with Python?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/reorder-webmap-layers-with-python/m-p/797543#M1895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anyone at Esri following the forums?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2020 22:34:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/reorder-webmap-layers-with-python/m-p/797543#M1895</guid>
      <dc:creator>davedoesgis</dc:creator>
      <dc:date>2020-04-13T22:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: reorder webmap layers with Python?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/reorder-webmap-layers-with-python/m-p/1002044#M5212</link>
      <description>&lt;P&gt;You can change the layers order by changing the order of WebMap object's &lt;EM&gt;definition['operationalLayers']&lt;/EM&gt; list.&amp;nbsp;&lt;/P&gt;&lt;P&gt;e.g. to switch the order between 1st and last having 6 layers:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;wm = WebMap(wm_item)
tempLayerDefinition = wm.definition['operationalLayers'][5]
wm.definition['operationalLayers'][5] = wm.definition['operationalLayers'][0]
wm.definition['operationalLayers'][0] = tempLayerDefinition
wm.update()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2020 04:59:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/reorder-webmap-layers-with-python/m-p/1002044#M5212</guid>
      <dc:creator>ikatinas</dc:creator>
      <dc:date>2020-11-17T04:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: reorder webmap layers with Python?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/reorder-webmap-layers-with-python/m-p/1061435#M6121</link>
      <description>&lt;P&gt;I can't get this to work in anyway shape or form?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;web_map = gis.content.get("1852725785754747")
wm = WebMap(web_map)

tmplyrdef = wm.definition.operationalLayers[15]
wm.definition.operationalLayers[15] = wm.definition.operationalLayers[0]
wm.definition.operationalLayers[0] = tmplyrdef

wm.update()
wm&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the absence of doubt, I also tried it this way&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;web_map = gis.content.get("572727827257578547")
wm = WebMap(web_map)

print(wm.definition.spatialReference)
print(wm.definition['operationalLayers'][15])

tempLayerDefinition = wm.definition['operationalLayers'][15]
wm.definition['operationalLayers'][15] = wm.definition['operationalLayers'][0]
wm.definition['operationalLayers'][0] = tempLayerDefinition


wm.update(item_properties=wip)

wm&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 May 2021 17:09:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/reorder-webmap-layers-with-python/m-p/1061435#M6121</guid>
      <dc:creator>PaulHallett1305</dc:creator>
      <dc:date>2021-05-25T17:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: reorder webmap layers with Python?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/reorder-webmap-layers-with-python/m-p/1062849#M6143</link>
      <description>&lt;P&gt;This works. You need to be aware that the indexing starts at the bottom layer and not the top. The below will switch the bottom layer with the second last layer.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from arcgis import GIS

conn = GIS("home")

item = conn.content.get("wm_item_id")
item_data = item.get_data()

tmp = item_data['operationalLayers'][1]
item_data['operationalLayers'][1] = item_data['operationalLayers'][0]
item_data['operationalLayers'][0] = tmp
item_properties = {"text":item_data}
item.update(item_properties=item_properties)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 May 2021 14:00:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/reorder-webmap-layers-with-python/m-p/1062849#M6143</guid>
      <dc:creator>Clubdebambos</dc:creator>
      <dc:date>2021-05-28T14:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: reorder webmap layers with Python?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/reorder-webmap-layers-with-python/m-p/1063237#M6149</link>
      <description>&lt;P&gt;Just taking this a bit further, I have tens of maps that will eventually be over a couple of hundred +, where I want standard layers in the same order, users have potential to reorder and some older maps do not fit the standard order but the layer naming does. Below is the base script created, I can put the list of webmap ids in a file and iterate through when I want or schedule for intermittent quality control runs. The below is for one run on a single webmap.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from arcgis import GIS

## dictionary
## key: standard layer name
## value: list, index of layer (from bottom up), the definition will be added to this list.
lyr_order_dict = {
    "standard_lyr_name_1" : [0],
    "standard_lyr_name_2" : [1],
    "standard_lyr_name_3" : [2],
    "standard_lyr_name_4" : [3],
    "standard_lyr_name_5" : [4],
    "standard_lyr_name_6" : [5],
    "standard_lyr_name_7" : [6],
    "standard_lyr_name_8" : [7],
    "standard_lyr_name_9" : [8],
    "standard_lyr_name_10" : [9],
    "standard_lyr_name_11" : [10],
    "standard_lyr_name_12" : [11],
    "standard_lyr_name_13" : [12],
    "standard_lyr_name_14" : [13]
}

conn = GIS("home")

item = conn.content.get("wm_id")
item_data = item.get_data()

## iterate through the layers
for index, i in enumerate(item_data["operationalLayers"]):
    ## get the name of the layer
    title = item_data["operationalLayers"][index]["title"]
    ## add the definition to the entry in the dictionary
    if title in lyr_order_dict:
        lyr_order_dict[title] = lyr_order_dict[title] + [item_data['operationalLayers'][index]]

## iterate through the dictionary and reorder the layers
for key, value in lyr_order_dict.items():
    item_data['operationalLayers'][value[0]] = value[1]

item_properties = {"text":item_data}
item.update(item_properties=item_properties)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 May 2021 07:59:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/reorder-webmap-layers-with-python/m-p/1063237#M6149</guid>
      <dc:creator>Clubdebambos</dc:creator>
      <dc:date>2021-05-31T07:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: reorder webmap layers with Python?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/reorder-webmap-layers-with-python/m-p/1063337#M6153</link>
      <description>&lt;P&gt;I have tested it, quite a lot, and it doesn't move any of the layers at all.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I'll work on it again tomorrow, but implementing this, as above, didn't work for me.&lt;/P&gt;</description>
      <pubDate>Mon, 31 May 2021 18:00:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/reorder-webmap-layers-with-python/m-p/1063337#M6153</guid>
      <dc:creator>PaulHallett1305</dc:creator>
      <dc:date>2021-05-31T18:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: reorder webmap layers with Python?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/reorder-webmap-layers-with-python/m-p/1063338#M6154</link>
      <description>&lt;P&gt;Thanks, will check if this works for me tomorrow; a dict was going to be my next stab.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 May 2021 18:02:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/reorder-webmap-layers-with-python/m-p/1063338#M6154</guid>
      <dc:creator>PaulHallett1305</dc:creator>
      <dc:date>2021-05-31T18:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: reorder webmap layers with Python?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/reorder-webmap-layers-with-python/m-p/1063444#M6156</link>
      <description>&lt;P&gt;That's interesting, I've ran this a few times now and works perfectly, I wonder what the difference is?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jun 2021 07:02:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/reorder-webmap-layers-with-python/m-p/1063444#M6156</guid>
      <dc:creator>Clubdebambos</dc:creator>
      <dc:date>2021-06-01T07:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: reorder webmap layers with Python?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/reorder-webmap-layers-with-python/m-p/1070962#M6242</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;Sorry for the late reply, but I have been ill.&lt;BR /&gt;&lt;BR /&gt;This is the function I have, inside a utilities class and I get list index errors, and when I checkl the contents, it's not being populated.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;    def reorder_layers(self):
        print("*********Re-ordering layers********** \n\n")
        ## dictionary
        ## key: standard layer name
        ## value: list, index of layer (from bottom up), the definition will be added to this list.
        lyr_order_dict = {
            "Open Work Orders" : [0],
            "Pressure Control Valves" : [1],
            "Others Repairs" : [2],
            "Dry Holes" : [3],
            "Open CSL" : [4],
            "GISID RAG Status" : [5],
            "Secondary Pipe Status" : [6],
            "DMA" : [7],
            "NMA" : [8],
            "FMZ" : [9],
            "Network Operation Valve" : [10],
            "Fire Hydrant" : [11],
            "Hot Spot" : [12],
            "Property Info" : [13]
        }

        web_map = self.gis.content.get(self.web_map_id)
        item_data = web_map.get_data()

        ## iterate through the layers
        for index, i in enumerate(item_data["operationalLayers"]):
            ## get the name of the layer
            title = item_data["operationalLayers"][index]["title"]
            ## add the definition to the entry in the dictionary
            if title in lyr_order_dict:
                print(f"{lyr_order_dict[title]} \n")
                lyr_order_dict[title] = lyr_order_dict[title] + [item_data['operationalLayers'][index]]
                print(f"{lyr_order_dict[title]} \n")
                print(f"{item_data['operationalLayers'][index]} \n")
                

        ## iterate through the dictionary and reorder the layers
        for key, value in lyr_order_dict.items():
            item_data['operationalLayers'][value[0]] = value[1]

        item_properties = {"text":item_data}
        self.wm.update(item_properties=item_properties)   
        &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This gives me an indexError: list index out of range, which on investigating, the data in there isn't good.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;IndexError: list index out of range
---------------------------------------------------------------------------
IndexError                                Traceback (most recent call last)
&amp;lt;command-2193284686337018&amp;gt; in &amp;lt;module&amp;gt;
     42 
     43 agsutil.get_feature_layer_size()
---&amp;gt; 44 agsutil.reorder_layers()
     45 agsutil is None
     46 print("Finished")

&amp;lt;command-2193284686336187&amp;gt; in reorder_layers(self)
    147         ## iterate through the dictionary and reorder the layers
    148         for key, value in lyr_order_dict.items():
--&amp;gt; 149             item_data['operationalLayers'][value[0]] = value[1]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jun 2021 18:04:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/reorder-webmap-layers-with-python/m-p/1070962#M6242</guid>
      <dc:creator>PaulHallett1305</dc:creator>
      <dc:date>2021-06-30T18:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: reorder webmap layers with Python?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/reorder-webmap-layers-with-python/m-p/1073047#M6276</link>
      <description>&lt;P&gt;It would be great if esri could way in here.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jun 2021 00:24:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/reorder-webmap-layers-with-python/m-p/1073047#M6276</guid>
      <dc:creator>LanceKirby2</dc:creator>
      <dc:date>2021-06-28T00:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: reorder webmap layers with Python?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/reorder-webmap-layers-with-python/m-p/1074165#M6288</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/464782"&gt;@PaulHallett1305&lt;/a&gt;&amp;nbsp;you have "GISIS RAG Status" twice in your dictionary and set as [5] and [6], layer names will need to be unique for this to work, otherwise one entry gets removed from the dictionary because of the duplicate key.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jun 2021 14:14:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/reorder-webmap-layers-with-python/m-p/1074165#M6288</guid>
      <dc:creator>Clubdebambos</dc:creator>
      <dc:date>2021-06-30T14:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: reorder webmap layers with Python?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/reorder-webmap-layers-with-python/m-p/1074189#M6289</link>
      <description>Sorry that’s a typo.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;##- Please type your reply above this line</description>
      <pubDate>Wed, 30 Jun 2021 14:58:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/reorder-webmap-layers-with-python/m-p/1074189#M6289</guid>
      <dc:creator>PaulHallett1305</dc:creator>
      <dc:date>2021-06-30T14:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: reorder webmap layers with Python?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/reorder-webmap-layers-with-python/m-p/1074345#M6291</link>
      <description>&lt;P&gt;I've edited it to be how it should be.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jun 2021 18:04:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/reorder-webmap-layers-with-python/m-p/1074345#M6291</guid>
      <dc:creator>PaulHallett1305</dc:creator>
      <dc:date>2021-06-30T18:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: reorder webmap layers with Python?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/reorder-webmap-layers-with-python/m-p/1075577#M6321</link>
      <description>&lt;P&gt;Well I finally got it working, and it wasn't Clubdebambos code that wasn't working, but my brain and I had named a layer slightly incorrectly (it had a trailing s), so your work is magic, super quick and does what it needs to do, right on the money.&lt;BR /&gt;&lt;BR /&gt;Thanks so much for your help, you went over and beyond what I would have expected.&lt;BR /&gt;&lt;BR /&gt;Great stuff&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jul 2021 07:44:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/reorder-webmap-layers-with-python/m-p/1075577#M6321</guid>
      <dc:creator>PaulHallett1305</dc:creator>
      <dc:date>2021-07-05T07:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: reorder webmap layers with Python?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/reorder-webmap-layers-with-python/m-p/1091297#M6519</link>
      <description>&lt;P&gt;Hey, I was running into a similar issue when I noticed you are using item.update() rather than webmap.update(). Took me a while to notice that to reorder operational layers you need to update the item data not necessarily the webmap object. Do you know why this is? It's not very intuitive (to me at least) that you need to update the item and not the webmap. Both have similar update functions but they seem to be capable of different things. Anyway, thank you for posting this code. Cheers!&lt;/P&gt;</description>
      <pubDate>Mon, 23 Aug 2021 16:55:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/reorder-webmap-layers-with-python/m-p/1091297#M6519</guid>
      <dc:creator>AustinDoezema</dc:creator>
      <dc:date>2021-08-23T16:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: reorder webmap layers with Python?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/reorder-webmap-layers-with-python/m-p/1091302#M6520</link>
      <description>&lt;P&gt;I think it's as you're updating an item within the webmap; it's not the web map per se.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Aug 2021 17:22:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/reorder-webmap-layers-with-python/m-p/1091302#M6520</guid>
      <dc:creator>PaulHallett1305</dc:creator>
      <dc:date>2021-08-23T17:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: reorder webmap layers with Python?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/reorder-webmap-layers-with-python/m-p/1129690#M6952</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/417766"&gt;@Clubdebambos&lt;/a&gt;' example--getting the item data, updating it, then updating item w/item_properties--worked for me. Wrestled with trying to update the web map object for a while; had no luck there. Switched to item and it works. Much appreciated!&lt;/P&gt;</description>
      <pubDate>Thu, 30 Dec 2021 18:24:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/reorder-webmap-layers-with-python/m-p/1129690#M6952</guid>
      <dc:creator>AlderMaps</dc:creator>
      <dc:date>2021-12-30T18:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: reorder webmap layers with Python?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/reorder-webmap-layers-with-python/m-p/1497956#M10254</link>
      <description>&lt;P&gt;Thank you for this post and discussion. It helped me create t&lt;SPAN&gt;his Jupyter Notebook that prompts the user for a layer to replace, and a layer to replace it with, then it loops through all of the web maps the user has access to and replaces the layers. Check it out, I hope it helps...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.arcgis.com/home/item.html?id=b73df8e0117e4143bb7f31d88eb0408e" target="_blank" rel="noopener nofollow noreferrer"&gt;ArcGIS Online Replace Layer in a Web Map&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2024 23:02:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/reorder-webmap-layers-with-python/m-p/1497956#M10254</guid>
      <dc:creator>JoeGuziStarkCountyOH</dc:creator>
      <dc:date>2024-06-26T23:02:09Z</dc:date>
    </item>
  </channel>
</rss>

