laptop and a wrench

Erro

Using the Measurement widget with the Draw widget calculates incorrect measurement as the last segment is missed in the calculation.

Última Publicação: November 7, 2017 ArcGIS API for JavaScript
Número de ID do Erro BUG-000108386
EnviadoSeptember 28, 2017
Última ModificaçãoJune 5, 2024
Aplica-se àArcGIS API for JavaScript
Versão encontrada3.21
Sistema OperacionalWindows OS
Versão do Sistema Operacional10.0 64 Bit
StatusNon-Reproducible

Informações Adicionais

instead please replace with this code snippet, this is the suggested way. aspect.before(measurement, "setTool", function(method) { // always deactivate draw when switching tools - even if turning measurement tool off // this also prevents draw from destroying necessary map event listeners that the measurement widget relies on draw.deactivate(); }); aspect.after(measurement, "setTool", function(method) { // re-activate draw if theres no active measure tool after setTool logic completes if (!measurement.activeTool) { draw.activate(Draw.LINE); } });

Etapas para Reproduzir

ID do Erro: BUG-000108386

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