I'm using Directions Widget available in Api for Javascript 3.39.
The user can choose two routing services. When I want to change the routing service, changing the RouteTask for the directings widget, it doesn't update the travel modes available to select from in the Travel Modes list.
How do I accomplish this?
Do I need to destroy the directions widget and create it again everytime the user changes the routing service? I need the user to be able to use the same input for both routing services, so if I need to destroy the object, I would need to save and recreate everything, and I would really like to avoid this, if possible.