Ik heb een Web Mapping Application gemaakt met behulp van de WebApp Builder en geprobeerd een Directions Widget toe te voegen die is geconfigureerd met een aangepaste (publieke) NAServer, maar het werkt niet: het blijft proberen de service te laden (zie afbeelding hieronder) en geeft vervolgens een foutmelding dat de service "niet gevonden of niet herkend" is en suggereert om de URL en\/of inloggegevens te controleren.<\/SPAN><\/P><\/SPAN><\/P><\/P>De NAServer is openbaar, dus er is geen noodzaak om inloggegevens te verstrekken, en de URL wordt automatisch gecontroleerd en herkend wanneer je deze instelt in het configuratieformulier van de widget.<\/SPAN><\/P><\/P>De routeringsservice van de NAServer werkt prima, aangezien ik deze succesvol heb gebruikt in ArcMap.<\/SPAN><\/P><\/P>Ik ben er zelfs in geslaagd een voorbeeldapplicatie op te zetten, gebruikmakend van de code die wordt geleverd in: Directions | ArcGIS API for JavaScript 3.17<\/A> , en het werkt prima, zoals te zien is in de afbeelding hieronder:<\/SPAN><\/P><\/P><\/SPAN><\/P><\/P>Het probleem lijkt te liggen bij de configuratie van de directions widget.<\/SPAN><\/P><\/P>Ik heb al geprobeerd de applicatie te downloaden en de configuratiecode voor de widget te controleren, maar zonder succes.<\/SPAN><\/P><\/P>Suggesties of ideeën? Dank u.<\/SPAN><\/P><\/BODY><\/HTML>
<\/P>
<\/SPAN><\/P><\/P>Het probleem lijkt te liggen bij de configuratie van de directions widget.<\/SPAN><\/P><\/P>Ik heb al geprobeerd de applicatie te downloaden en de configuratiecode voor de widget te controleren, maar zonder succes.<\/SPAN><\/P><\/P>Suggesties of ideeën? Dank u.<\/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?
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.