In the Directions Widget (v2.4) is there a way to have "Show Traffic" off by default?
Solved! Go to Solution.
Jason,
In the Directions Widget.js Startup function make the change below (line 4):
if(this.config.trafficLayerUrl){
this._trafficLayer = new ArcGISDynamicMapServiceLayer(this.config.trafficLayerUrl);
options.trafficLayer = this._trafficLayer;
options.traffic = false;
}else{
options.traffic = false;
options.showTrafficOption = false;
}
Jason,
In the Directions Widget.js Startup function make the change below (line 4):
if(this.config.trafficLayerUrl){
this._trafficLayer = new ArcGISDynamicMapServiceLayer(this.config.trafficLayerUrl);
options.trafficLayer = this._trafficLayer;
options.traffic = false;
}else{
options.traffic = false;
options.showTrafficOption = false;
}
Thanks a million Robert!