AnsweredAssumed Answered

Add multiple layers to a Map Python Api

Question asked by paul.sweeneyTLI on Aug 6, 2020
Latest reply on Aug 11, 2020 by paul.sweeneyTLI
item1 = gis.content.search(query = "title:HSF",item_type='Feature Layer', max_items=1000,)
display(item1)

item2 = gis.content.search(query = "title:xxxxxxxxx",item_type='Web Map', max_items=1000,)
display(item2)
wm_item = item2[0]
from arcgis.mapping import WebMap
web_map_obj = WebMap(wm_item)
for item in item1:
web_map_obj.add_layer(item)

See above code can anyone tell me what i need to specify to get every item in the list item 1 added to the Map. it iterates through the list but only adds the first feature over and over. 

Outcomes