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 Support アプリのダウンロード

このトピックについてさらに調べる

ArcGIS エキスパートのサポートを受ける

テクニカル サポートへのお問い合わせ

Esri Support アプリのダウンロード

ダウンロード オプションに移動