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.
Solved! Go to Solution.
Tested this out. There's a method on the DirectionsViewModel to clear results.
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
Tested this out. There's a method on the DirectionsViewModel to clear results.
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