The printTaskUrl and geometryTaskUrl parameters are ignored when set in the constructor of the Directions widget if the TaskUrl route is set to any URL besides the default.
Last Published: November 12, 2014ArcGIS API for JavaScript
Bug ID Number
BUG-000082900
Submitted
October 30, 2014
Last Modified
June 5, 2024
Applies to
ArcGIS API for JavaScript
Version found
3.11
Version Fixed
3.12
Status
Fixed
The bug has been fixed. See the Version Fixed and Additional Information, if applicable, for more information.
Workaround
In the constructor of the Directions widget, set the printTaskUrl and geometryTaskUrl to the desired services. Set the routeTaskUrl to: 'http://route.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World'
Add the following code block to the application: directions.on("load", function() { directions.routeTask._url.path = <url to your route service + /solve>; directions.routeTask.url = <url to your route service + /solve>; directions.routeTaskUrl = <url to your route service + /solve; });