laptop and a wrench

漏洞

Creating a hosted feature layer view using ArcGIS API for Python fails to create the expected visualization if the layer is set with a non-sequential layer ID in ArcGIS Pro.

ArcGIS API for Python
漏洞 ID 编号 BUG-000159162
已提交June 16, 2023
上次修改时间August 18, 2025
适用范围ArcGIS API for Python
找到的版本2.1.1
操作系统Windows OS
操作系统版本11.0 64 bit
状态As Designed

附加信息

To preserve the order, preserve_layer_ids must be set to True, and the layers/tables must be provided to the view. res2 = mgr.create_view( name=f"my_view_{uuid.uuid4().hex[:4]}", view_layers=[item.layers[3], item.layers[1]], preserve_layer_ids=True, ) This results in a layer with two layers in the view. The layer IDs are preserved as 83 and 1.

解决办法

  • Use the ArcGIS Online user interface (UI) to create the layer view.
  • Keep the default sequential layer IDs (0,1, 2, 3, and so forth).

重现步骤

漏洞 ID: BUG-000159162

软件:

  • ArcGIS API for Python

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

下载 Esri 支持应用程序

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

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项