Hi,
Is there a way to access the clear route button or function from the directions widget? I am currently looking for a way to clear the route of the directions widget by using a different button or just changing widgets/windows.
Tested this out. There's a method on the DirectionsViewModel to clear results.
https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions-DirectionsViewModel.html#clearResults
You can use it and it will clear the results in the widget. Here is a sample.
https://codepen.io/odoe/pen/NWpezwb?editors=1000
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.