Ich habe eine Web Mapping Application mit dem WebApp Builder erstellt und versucht, ein Directions Widget hinzuzufügen, das mit einem benutzerdefinierten (öffentlichen) NAServer konfiguriert ist, aber es funktioniert nicht: Es versucht ständig, den Dienst zu laden (siehe Bild unten) und gibt mir dann einen Fehler "Dienst nicht gefunden oder nicht erkannt" aus und schlägt vor, die URL und\/oder Anmeldedaten zu überprüfen.<\/SPAN><\/P><\/SPAN><\/P><\/P>Der NAServer ist öffentlich, daher ist es nicht notwendig, Anmeldedaten anzugeben, und die URL wird automatisch überprüft und erkannt, wenn Sie sie im Konfigurationsformular des Widgets eingeben.<\/SPAN><\/P><\/P>Der Routing-Dienst des NAServers funktioniert einwandfrei, da ich ihn erfolgreich in ArcMap verwendet habe.<\/SPAN><\/P><\/P>Ich habe sogar eine Beispielanwendung eingerichtet, indem ich den bereitgestellten Code unter: Directions | ArcGIS API for JavaScript 3.17<\/A> verwendet habe, und sie funktioniert einwandfrei, wie im Bild unten gezeigt:<\/SPAN><\/P><\/P><\/SPAN><\/P><\/P>Das Problem scheint bei der Konfiguration des Directions Widgets zu liegen.<\/SPAN><\/P><\/P>Ich habe bereits versucht, die Anwendung herunterzuladen und den Konfigurationscode für das Widget zu überprüfen, jedoch ohne Erfolg.<\/SPAN><\/P><\/P>Irgendwelche Gedanken oder Vorschläge? Danke.<\/SPAN><\/P><\/BODY><\/HTML>
<\/P>
<\/SPAN><\/P><\/P>Das Problem scheint bei der Konfiguration des Directions Widgets zu liegen.<\/SPAN><\/P><\/P>Ich habe bereits versucht, die Anwendung herunterzuladen und den Konfigurationscode für das Widget zu überprüfen, jedoch ohne Erfolg.<\/SPAN><\/P><\/P>Irgendwelche Gedanken oder Vorschläge? Danke.<\/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?
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.