laptop and a wrench

Bug

The Clear button on the Directions widget clears the map but leaves the destinations in the text boxes.

Last Published: June 30, 2016 ArcGIS API for JavaScript
Bug ID Number BUG-000097473
SubmittedJune 28, 2016
Last ModifiedJune 5, 2024
Applies toArcGIS API for JavaScript
Version found3.16
Operating SystemN/A
StatusWill Not Be Addressed

Additional Information

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

Steps to Reproduce

Bug ID: BUG-000097473

Software:

  • ArcGIS API for JavaScript

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options