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
I should be able to set the popupInfo for a layer in a WebMap using the PopupManager info property as per the docs here
Instead I get an AttributeError
To Reproduce
Steps to reproduce the behavior:
A simplified version below where the .info should accept the PopupInfo object extracted from the .info itself.
fromarcgis.gisimportGISfromarcgis.mapimportMapagol=GIS("home")
wm_item=agol.content.get("WM_ITEM_ID")
webmap=Map(wm_item)
popup_info=webmap.content.popup(index=2).info## I would generally edit some components here, the error is the same regardless## The .info should accept the original PopupInfo without errorwebmap.content.popup(index=2).info=popup_info## error herestatus=webmap.update()
print(status)
Hi @nanaeaubry, the edit method is not all encompassing. It does not cater for ReleatedRecordsInfo, hence the need to be able to update via the .info with a PopupInfo object. The workaround is to edit the JSON Definition.
Describe the bug
I should be able to set the popupInfo for a layer in a WebMap using the PopupManager info property as per the docs here
Instead I get an AttributeError
To Reproduce
Steps to reproduce the behavior:
A simplified version below where the .info should accept the PopupInfo object extracted from the .info itself.
error:
Screenshots
If applicable, add screenshots to help explain your problem.
Expected behavior
The .info should accept the PopupInfo object without error.
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: