laptop and a wrench

Erro

Adding a function with graphicsLayer clone and modifying one of its properties would only change in a single-click HTML button if it was clicked twice.

ArcGIS Maps SDK for JavaScript
Número de ID do Erro BUG-000130105
EnviadoApril 13, 2020
Última ModificaçãoFebruary 14, 2025
Aplica-se àArcGIS Maps SDK for JavaScript
Versão encontrada4.14
Sistema OperacionalWindows OS
Versão do Sistema Operacional10.0 64 Bit
StatusUnder Consideration

Solução Provisória

Link workaroundhttps://codepen.io/AuraipornA/pen/QWQoezq

  • Instead of making a clone of the graphicsLayer and having the Polygon and Graphic made outside the function, make a function with the Polygon and Graphic within it.
  • Add in graphicsLayer.removeAll() to reset the old graphic.
  • Add in graphicsLayer.add(Graphic) to make the newly defined Polygon that were made using the HTML buttons using a single click as seen in BUG-000130105_workaround (Line number 75 - 92).

Etapas para Reproduzir

ID do Erro: BUG-000130105

Software:

  • ArcGIS Maps SDK 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