laptop and a wrench

Error

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

Última publicación: November 7, 2017 ArcGIS API for JavaScript
Número de ID del error BUG-000108386
EnviadoSeptember 28, 2017
Última modificaciónJune 5, 2024
Relacionado conArcGIS API for JavaScript
Versión encontrada3.21
Sistema operativoWindows OS
Versión de sistema operativo10.0 64 Bit
EstadoNon-Reproducible

Información adicional

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

Pasos para reproducir

ID del error: BUG-000108386

Software:

  • ArcGIS API for JavaScript

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga