You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
GroupLayer object update_layer() method does not work on the inner group layers but on the Main Map layers.
To Reproduce
Steps to reproduce the behavior:
fromarcgis.gisimportGISfromarcgis.mapimportMap## NOTES: GroupLayer is at index 1.agol=GIS("home")
wm_item=agol.content.get("WM_ITEM_ID")
webmap=Map(wm_item)
gl=webmap.content.layers[1]
# Rename Layer in GroupLayer (well, attemp to anyway)gl.update_layer(
index=0,
options= {"title" : "Special Protected Areas (SPA)"}
)
gl.update_layer(
index=1,
options= {"title" : "Special Areas of Conservation (SAC)"}
)
webmap.update()
error:
<copythefullerrormessagehere>
Screenshots
Expected behavior
The two layers inside the group layer should be updated, not the main map layers.
Platform (please complete the following information):
OS: Windows 11 Home
Browser Charome
Python API Version 2.4.0
Additional context
Add any other context about the problem here, attachments etc.
The text was updated successfully, but these errors were encountered:
Describe the bug
GroupLayer object update_layer() method does not work on the inner group layers but on the Main Map layers.
To Reproduce
Steps to reproduce the behavior:
error:
Screenshots
Expected behavior
The two layers inside the group layer should be updated, not the main map layers.
Platform (please complete the following information):
Additional context
Add any other context about the problem here, attachments etc.
The text was updated successfully, but these errors were encountered: