laptop and a wrench

Erro

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 do Erro BUG-000177131
EnviadoJune 12, 2025
Última ModificaçãoOctober 11, 2025
Aplica-se àArcGIS API for Python
Versão encontrada2.4.1
Sistema OperacionalWindows OS
Versão do Sistema Operacional10.0 64 Bit
Versão Fixa2.4.2
StatusFixed

Solução Provisória

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

            }

          }

        }

      },

 

 

Etapas para Reproduzir

ID do Erro: BUG-000177131

Software:

  • ArcGIS API for Python

Seja notificado quando o status de um erro mudar

Baixe o Aplicativo de Suporte da Esri

Descubra mais sobre este tema

Obtenha ajuda de especialistas do ArcGIS

Entre em contato com Suporte Técnico

Baixe o Aplicativo de Suporte da Esri

Ir para as opções de download