laptop and a wrench

Bug

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, 2014 ArcGIS API for JavaScript
Bug ID Number BUG-000082900
SubmittedOctober 30, 2014
Last ModifiedJune 5, 2024
Applies toArcGIS API for JavaScript
Version found3.11
Version Fixed3.12
StatusFixed

Workaround

  1. 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'
  2. 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; });

Steps to Reproduce

Bug ID: BUG-000082900

Software:

  • ArcGIS API for JavaScript

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options