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