laptop and a wrench

漏洞

Enabling labelling within a web map causes validation errors when utilising the arcgis.map submodule in ArcGIS API for Python 2.4.x.

ArcGIS API for Python
漏洞 ID 编号 BUG-000177131
已提交June 12, 2025
上次修改时间October 11, 2025
适用范围ArcGIS API for Python
找到的版本2.4.1
操作系统Windows OS
操作系统版本10.0 64 Bit
修正版本2.4.2
状态Fixed

解决办法

Including a simple renderer at the Web Map level resolves the validation error. This has to be done via adding the renderer to the Web Map JSON. Please note this can corrupt the item if incorrectly applied.

"layerDefinition": {

        "drawingInfo": {

          "labelingInfo": [

            {

              "labelExpression": "[OBJECTID]",

              "labelExpressionInfo": {

                "expression": "$feature[\"OBJECTID\"]"

              },

              "labelPlacement": "esriServerPointLabelPlacementAboveCenter",

              "repeatLabel": true,

              "symbol": {

                "type": "esriTS",

                "color": [

                  247,

                  247,

                  247,

                  255

                ],

                "font": {

                  "family": "Arial",

                  "size": 9.75

                },

                "horizontalAlignment": "center",

                "kerning": true,

                "haloColor": [

                  38,

                  38,

                  38,

                  255

                ],

                "haloSize": 1,

                "rotated": false,

                "text": "",

                "verticalAlignment": "baseline",

                "xoffset": 0,

                "yoffset": 0,

                "angle": 0

              }

            }

          ],

          "renderer": {

            "type": "simple",

            "symbol": {

              "type": "esriSMS",

              "style": "esriSMSCircle",

              "color": [

                0,

                0,

                255,

                255

              ],

              "size": 50

            }

          }

        }

      },

 

 

重现步骤

漏洞 ID: BUG-000177131

软件:

  • ArcGIS API for Python

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

下载 Esri 支持应用程序

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

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项