laptop and a wrench

Bug

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
Bug-ID-Nummer BUG-000177131
EingereichtJune 12, 2025
Zuletzt geändertOctober 11, 2025
Gilt fürArcGIS API for Python
Gefunden in Version2.4.1
BetriebssystemWindows OS
Betriebssystemversion10.0 64 Bit
Behoben in Version2.4.2
StatusFixed

Workaround

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

            }

          }

        }

      },

 

 

Schritte zur Reproduzierung

Bug-ID: BUG-000177131

Software:

  • ArcGIS API for Python

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln