laptop and a wrench

Error

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.

Última publicación: November 12, 2014 ArcGIS API for JavaScript
Número de ID del error BUG-000082900
EnviadoOctober 30, 2014
Última modificaciónJune 5, 2024
Relacionado conArcGIS API for JavaScript
Versión encontrada3.11
Versión corregida3.12
EstadoFixed

Solución alternativa

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

Pasos para reproducir

ID del error: BUG-000082900

Software:

  • ArcGIS API for JavaScript

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga