Select to view content in your preferred language

Directions Widget: Turn off route drawing and directions

739
0
08-18-2017 02:12 AM
Status: Open
NiklasKöhn
Esri Contributor

I'm using the Directions widget without displaying the directions on the screen. Afaik there's no switch to disable directions on the Directions widget, so I'm hiding them via CSS. I guess that it's a pretty common use case to just use the Directions widget as a good UI for route calculation.

Another use case I have requires to draw the route manually from the JS code, so I need to hide the route that is drawn by the Directions widget. Of course it would only be a performance win, if I could switch off route drawing in the first place.

I'm suggesting flags to turn off route drawing and directions display on the Directions widget.