laptop and a wrench

Bogue

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.

Dernière publication: November 12, 2014 ArcGIS API for JavaScript
Numéro d’ID de bogue BUG-000082900
EnvoiOctober 30, 2014
Dernière modificationJune 5, 2024
S’applique àArcGIS API for JavaScript
Version trouvée3.11
Version de correction3.12
StatutFixed

Solution de contournement

  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; });

Étapes pour reproduire

ID de bogue: BUG-000082900

Logiciel:

  • ArcGIS API for JavaScript

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement