laptop and a wrench

漏洞

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

上次发布: November 7, 2017 ArcGIS API for JavaScript
漏洞 ID 编号 BUG-000108386
已提交September 28, 2017
上次修改时间June 5, 2024
适用范围ArcGIS API for JavaScript
找到的版本3.21
操作系统Windows OS
操作系统版本10.0 64 Bit
状态Non-Reproducible

附加信息

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

重现步骤

漏洞 ID: BUG-000108386

软件:

  • ArcGIS API for JavaScript

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项