The Clear button on the Directions widget clears the map but leaves the destinations in the text boxes.
上次发布: June 30, 2016ArcGIS API for JavaScript
漏洞 ID 编号
BUG-000097473
已提交
June 28, 2016
上次修改时间
June 5, 2024
适用范围
ArcGIS API for JavaScript
找到的版本
3.16
操作系统
N/A
状态
Will Not Be Addressed
开发团队已考虑过该问题或请求,并决定不会解决该问题。 问题的“其他信息”部分可能包含进一步说明。
附加信息
This is by design, this button calls clearDirections(), which "Removes the route directions from the directions list. The route and locations persist on the map." What you can do is listen for when this is called and call reset on the widget.
example:
directions.startup();
directions.on("directions-clear", function(){directions.reset();})