Why is this not working for copy layers from one webmap to another?
map1 = gis.content.get(<itemID_1>)
map2 = gis.content.get(<itemID_2>)
webmap1 = WebMap(map1)
webmap2 = WebMap(map2)
layer = webmap2.definition.operationalLayers[0]
webmap1.definition.operationalLayers.append(layer)
webmap1.update()
I get no error messages, but there is no alteration on webmap1 as well.
It add the layer to the webmap1 when i check for it before webmap1.update(), but this update has no effect.