laptop and a wrench

Erro

Subsequent clicks on sketches in ArcGIS JavaScript API 4.x do not register the clicks using the MapView click event.

Última Publicação: December 3, 2021 ArcGIS API for JavaScript
Número de ID do Erro BUG-000144549
EnviadoNovember 16, 2021
Última ModificaçãoJune 5, 2024
Aplica-se àArcGIS API for JavaScript
Versão encontrada4.21
Sistema OperacionalWindows OS
Versão do Sistema Operacional10.0
StatusAs Designed

Informações Adicionais

The Sketch widget is updated and calls to stop propagation internally. This prevents subsequent click events from firing, which results in the view click events not registering after clicking on a graphic. It is recommended to use the immediate-click event to access the view click event information while actively using Sketch.

Solução Provisória

Use 'immediate-click' instead of 'click' on the view. For example: view.on("immediate-click", () => { view.hitTest(event).then((response) => { console.log(response); }); })

Etapas para Reproduzir

ID do Erro: BUG-000144549

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