Eu criei um Aplicativo de Mapeamento Web usando o WebApp Builder e tentei adicionar um Directions Widget configurado com um NAServer personalizado (público), mas não funciona: ele continua tentando carregar o serviço (veja a imagem abaixo) e então me dá um erro de serviço "não encontrado ou não reconhecido" e sugere que eu verifique a URL e\/ou as credenciais.<\/SPAN><\/P><\/SPAN><\/P><\/P>O NAServer é público, então não há necessidade de fornecer credenciais, e a URL é verificada e reconhecida automaticamente quando você a define no formulário de configuração do widget.<\/SPAN><\/P><\/P>O serviço de roteamento do NAServer funciona bem, pois eu o usei com sucesso no ArcMap.<\/SPAN><\/P><\/P>Eu até consegui configurar um aplicativo de exemplo, usando o código fornecido em: Directions | ArcGIS API for JavaScript 3.17<\/A> , e ele funciona bem, como mostrado na imagem abaixo:<\/SPAN><\/P><\/P><\/SPAN><\/P><\/P>O problema parece estar na configuração do directions widget.<\/SPAN><\/P><\/P>Eu já tentei baixar o aplicativo e verificar o código de configuração do widget, mas sem sucesso.<\/SPAN><\/P><\/P>Alguma ideia \/ sugestão? Obrigado.<\/SPAN><\/P><\/BODY><\/HTML>
<\/P>
<\/SPAN><\/P><\/P>O problema parece estar na configuração do directions widget.<\/SPAN><\/P><\/P>Eu já tentei baixar o aplicativo e verificar o código de configuração do widget, mas sem sucesso.<\/SPAN><\/P><\/P>Alguma ideia \/ sugestão? Obrigado.<\/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?
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.