laptop and a wrench

漏洞

The legend element in an ArcGIS Pro project does not show the newly added layer to an existing map using ArcPy.

上次发布: April 29, 2019 ArcGIS Pro
漏洞 ID 编号 BUG-000121607
已提交April 9, 2019
上次修改时间July 31, 2025
适用范围ArcGIS Pro
找到的版本2.3.2
修正版本2.4
状态Fixed

解决办法

From our testing we found two workarounds:

  1. This only happens for scripts run outside of Pro. Scripts in the Python Window work as well as script tools.
  2. To remedy the problem outside of Pro, all you need to do is reference the layout first using

lyt = p.listLayouts()[0]   

 

BEFORE adding the layers to a map.

重现步骤

漏洞 ID: BUG-000121607

软件:

  • ArcGIS Pro

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

下载 Esri 支持应用程序

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

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项