I have switched from the Map Viewer Classic to the new Map Viewer. The code below to update the WebMap extent used to work on the Classic but fails to work on the new Map Viewer. Is anyone else having this issue? Has anyone successfully updated the WebMap extent using the ArcGIS API for Python with the new Map Viewer?
from arcgis.gis import GIS
## Access AGOL
agol = GIS("home")
## Access the WebMap Item
wm_item = agol.content.get("WM_ITEM_ID")
## the new extent
xmin = -12
ymin = 50
xmax = -2
ymax = 58
item_properties = {'extent':'{0},{1},{2},{3}'.format(xmin, ymin, xmax, ymax)}
## update the WebMap Item
wm_item.update(item_properties)
The code runs without error but the WebMap extent when the WebMap is opened remains unchanged.
Additional Information: it updates the JSON but doesnt affect the WebMap extent when opening the viewer.