Vytvořil jsem Web Mapping Application pomocí WebApp Builder a pokusil se přidat Directions Widget nakonfigurovaný s vlastním (veřejným) NAServerem, ale nefunguje: stále se snaží načíst službu (viz obrázek níže) a pak mi dává chybu služby "nenalezeno nebo nerozpoznáno" a navrhuje zkontrolovat URL a\/nebo přihlašovací údaje.<\/SPAN><\/P><\/SPAN><\/P><\/P>NAServer je veřejný, takže není potřeba zadávat žádné přihlašovací údaje, a URL je automaticky ověřena a rozpoznána při nastavení v konfiguračním formuláři widgetu.<\/SPAN><\/P><\/P>Routingová služba NAServeru funguje správně, protože jsem ji úspěšně použil v ArcMap.<\/SPAN><\/P><\/P>Dokonce se mi podařilo nastavit ukázkovou aplikaci pomocí kódu poskytnutého v: Directions | ArcGIS API for JavaScript 3.17<\/A> , a funguje to správně, jak je vidět na obrázku níže:<\/SPAN><\/P><\/P><\/SPAN><\/P><\/P>Zdá se, že problém je v konfiguraci directions widgetu.<\/SPAN><\/P><\/P>Už jsem zkoušel stáhnout aplikaci a zkontrolovat konfigurační kód pro widget, ale bez úspěchu.<\/SPAN><\/P><\/P>Máte nějaké nápady \/ návrhy? Děkuji.<\/SPAN><\/P><\/BODY><\/HTML>
<\/P>
<\/SPAN><\/P><\/P>Zdá se, že problém je v konfiguraci directions widgetu.<\/SPAN><\/P><\/P>Už jsem zkoušel stáhnout aplikaci a zkontrolovat konfigurační kód pro widget, ale bez úspěchu.<\/SPAN><\/P><\/P>Máte nějaké nápady \/ návrhy? Děkuji.<\/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?
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.