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
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.