Bug ID Number |
BUG-000173532 |
Submitted | January 10, 2025 |
Last Modified | January 27, 2025 |
Applies to | ArcGIS API for Python |
Version found | 2.4 |
Operating System | Windows OS |
Operating System Version | 11.0 64 bit |
Status | As Designed
After review by the development team, it has been determined that this behavior is as designed. See the Additional Information section for details.
|
Additional Information
The arcgis.map module is a new addition, and while some functionality and workflows from the arcgis.mapping module has been carried over, they are not identical
For maps with broken layer URLs, it is recommended to update them using the methods available in the Item class. Refer to the example code below:
```
gis = GIS(profile="your_online_profile")
item = gis.content.get("map_item_id")
data = item.get_data()
data["operationalLayers"][0]["url"] = "my_new_url"
item.update(data=data)
print(item.get_data())
```
Workaround
Use the web map's JSON property to check the layers' URLs.
Steps to Reproduce