I am using this: Directions | ArcGIS API for JavaScript 3.23
2 QUESTIONS:
Is there a way to do a map click and record the XY in the To and From fields instead of entering an address or using the GPS locator?
- Can I add parameters to the widget for XY To and From?
- I can add a button to capture the XY into a variable but dont know if I can push that variable value to the To and From before running the widget
How do I clear the directions after the widget is run. Looking for a clear all
Jay,
Sure just click the button I outlined in the image: