laptop and a wrench

Error

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
Número de ID del error BUG-000177131
EnviadoJune 12, 2025
Última modificaciónOctober 11, 2025
Relacionado conArcGIS API for Python
Versión encontrada2.4.1
Sistema operativoWindows OS
Versión de sistema operativo10.0 64 Bit
Versión corregida2.4.2
EstadoFixed

Solución alternativa

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

            }

          }

        }

      },

 

 

Pasos para reproducir

ID del error: BUG-000177131

Software:

  • ArcGIS API for Python

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga