AnsweredAssumed Answered

update the html in 'custom attribute display' programatically using rest api python

Question asked by pareshp on Dec 20, 2017
Latest reply on Jan 4, 2018 by THays-esristaff

I need to loop each web map in ArcGIS online/portal and update the html for layers with  'custom attribute display'.

I am unable to get layers from web map.


from IPython.display import display
import arcgis
from arcgis.gis import GIS
# connect to your GIS
gis = GIS("","arcgis_python","P@ssword123")
webmap_search ="Ebola maps", item_type="Web Map")
ebola_map_item = webmap_search[1]
ebola_map = WebMap(ebola_map_item)
for layer in ebola_map.layers: --- error: 
'WebMap' object has no attribute 'layers'

Is there any possibilities of updating HTML programmatically for all the layers in webmaps in Group.