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.

Zuletzt veröffentlicht: November 12, 2014 ArcGIS API for JavaScript
Bug-ID-Nummer BUG-000082900
EingereichtOctober 30, 2014
Zuletzt geändertJune 5, 2024
Gilt fürArcGIS API for JavaScript
Gefunden in Version3.11
Behoben in Version3.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; });

Schritte zur Reproduzierung

Bug-ID: BUG-000082900

Software:

  • ArcGIS API for JavaScript

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln