laptop and a wrench

Bogue

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

Dernière publication: November 7, 2017 ArcGIS API for JavaScript
Numéro d’ID de bogue BUG-000108386
EnvoiSeptember 28, 2017
Dernière modificationJune 5, 2024
S’applique àArcGIS API for JavaScript
Version trouvée3.21
Système d’exploitationWindows OS
Version du système d’exploitation10.0 64 Bit
StatutNon-Reproducible

Informations supplémentaires

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); } });

Étapes pour reproduire

ID de bogue: BUG-000108386

Logiciel:

  • ArcGIS API for JavaScript

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement