laptop and a wrench

漏洞

In the ArcGIS API for Python 2.4.0 release, the new arcgis.map.Map module does not return the remaining layers in the map if it runs into an invalid layer while accessing a map item's content.layers property.

ArcGIS API for Python
漏洞 ID 编号 BUG-000173532
已提交January 10, 2025
上次修改时间January 27, 2025
适用范围ArcGIS API for Python
找到的版本2.4
操作系统Windows OS
操作系统版本11.0 64 bit
状态As Designed

附加信息

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()) ```

解决办法

Use the web map's JSON property to check the layers' URLs.

重现步骤

漏洞 ID: BUG-000173532

软件:

  • ArcGIS API for Python

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项