The Python API does not support adding Open Geopsatial Consortium (OGC) layers to a web map using the add_layer() method.
上次发布: August 2, 2018ArcGIS API for Python
漏洞 ID 编号
BUG-000113224
已提交
April 16, 2018
上次修改时间
June 30, 2025
适用范围
ArcGIS API for Python
找到的版本
1.4
操作系统
Windows OS
操作系统版本
10.0 64 Bit
修正版本
1.8.2
状态
Fixed
此漏洞已得到修复。 有关详细信息,请参阅“版本修复”和“其他信息”(如果适用)。
解决办法
Add the Open Geopsatial Consortium (OGS) service using Python syntax of inserting an element to the 'operationalLayers'' list of the web map object dictionary (.insert()) and the 'update' function of the library (.update()) to save the new layers to the web map.Sample script provided in Analyst Knowledge: Add a layer to web map using ArcGIS API for Python.