He creado una Aplicación de Mapeo Web usando el WebApp Builder y traté de agregar un widget de Direcciones configurado con un NAServer personalizado (público), pero no funciona: sigue intentando cargar el servicio (ver imagen abajo) y luego me da un error de servicio "no encontrado o no reconocido" y me sugiere verificar la URL y\/o las credenciales.<\/SPAN><\/P><\/SPAN><\/P><\/P>El NAServer es público, por lo que no es necesario proporcionar credenciales, y la URL se verifica y reconoce automáticamente cuando la configuras en el formulario de configuración del widget.<\/SPAN><\/P><\/P>El servicio de enrutamiento del NAServer funciona bien, ya que lo usé con éxito en ArcMap.<\/SPAN><\/P><\/P>Incluso logré configurar una aplicación de ejemplo, usando el código proporcionado en: Directions | ArcGIS API for JavaScript 3.17<\/A> , y funciona bien, como se muestra en la imagen a continuación:<\/SPAN><\/P><\/P><\/SPAN><\/P><\/P>El problema parece estar en la configuración del widget de direcciones.<\/SPAN><\/P><\/P>Ya intenté descargar la aplicación y revisar el código de configuración del widget, pero sin éxito.<\/SPAN><\/P><\/P>¿Alguna idea o sugerencia? Gracias.<\/SPAN><\/P><\/BODY><\/HTML>
<\/P>
<\/SPAN><\/P><\/P>El problema parece estar en la configuración del widget de direcciones.<\/SPAN><\/P><\/P>Ya intenté descargar la aplicación y revisar el código de configuración del widget, pero sin éxito.<\/SPAN><\/P><\/P>¿Alguna idea o sugerencia? Gracias.<\/SPAN><\/P><\/BODY><\/HTML>
It takes quite some time, but yeah. It then fires a "Timeout exceeded" error on the console.
In the widget it gives me a message of service "not found or not recognized" and suggests me to check the URL and/or credentials.
The routing service that I'm using it's from an HTTPS server. Could the problem be that it is trying to access the service through HTTP and receives an error? If so, how can I correct this?
Thanks
Carlos,
does the spinning icon ever go away? if so what does the web console say then?
Just tried it.
It gives the following warning:
Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.
Have you checked your browsers web console to see if the error(s) there shed any light on what your NA Service is missing that the widget is looking for?
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.