laptop and a wrench

Erro

Graphic with TextSymbol does not draw when Polygon Graphic is added to the view twice.

Última Publicação: December 31, 2020 ArcGIS API for JavaScript
Número de ID do Erro BUG-000135688
EnviadoNovember 24, 2020
Última ModificaçãoJune 5, 2024
Aplica-se àArcGIS API for JavaScript
Versão encontrada4.17
Sistema OperacionalWindows OS
Versão do Sistema Operacional10.0
StatusNon-Reproducible

Informações Adicionais

The code appears to be the issue. If the user zooms in or out after the original test app loads, the text appears to be fine. https://codepen.io/lxie/pen/QWEeroL?editors=1000 If the user adds a delay before adding the second polygon graphic, the text appears fine. https://codepen.io/noash/pen/wvzzByO

Solução Provisória

To add a graphic to the view for the second time, use Graphic.clone() to create a deep clone of the graphic object, and add the clone to the view instead. 

  • Graphic.clone(): https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html#clone

Etapas para Reproduzir

ID do Erro: BUG-000135688

Software:

  • ArcGIS API for JavaScript

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