AnsweredAssumed Answered

Directions Widget WAB Customize

Question asked by ARROCAL on Sep 6, 2017
Latest reply on Dec 5, 2017 by rscheitlin


I have to make some modifications to the WAB 2.3  Developer Edition Directions widget and I do not know if it is possible.

The URL of the route tasks web service is set into  the options parameter of the constructor of the directions class:

 var options = {


routeTaskUrl: this.config.routeTaskUrl,



this._dijitDirections = new Directions (options, directionContainer);


After of  the creation of the widget with this._dijitDirections.startup (); the travel modes select element is displayed and you can select diferents travel models: driving distance, driving time, rural driving time, etc.


I need to change the URL of the Route Task service depending on which travel mode has been selected in the select element, but I do not know if it is possible because the ULR is set into the widget before the select element is displayed.


Any ideas?.


Best regards.