私は WebApp Builder を使って Web マッピングアプリケーションを作成し、カスタム(パブリック)NAServer で構成された Directions Widget を追加しようとしましたが、動作しません:サービスの読み込みを試み続け(下の画像参照)、その後「サービスが見つからないか認識されていない」というエラーが表示され、URL および/または資格情報の確認を促されます。<\/SPAN><\/P><\/SPAN><\/P><\/P>NAServer はパブリックなので、資格情報を提供する必要はなく、ウィジェットの設定フォームに URL を設定すると自動的にチェックされ認識されます。<\/SPAN><\/P><\/P>NAServer のルーティングサービスは正常に動作しており、ArcMap で問題なく使用できました。<\/SPAN><\/P><\/P>さらに、以下のコードを使用してサンプルアプリケーションを設定することにも成功しました: Directions | ArcGIS API for JavaScript 3.17<\/A> 、そして下の画像のように正常に動作しています。<\/SPAN><\/P><\/P><\/SPAN><\/P><\/P>問題は directions widget の設定にあるようです。<\/SPAN><\/P><\/P>アプリケーションをダウンロードしてウィジェットの設定コードを確認しようとしましたが、うまくいきませんでした。<\/SPAN><\/P><\/P>何かご意見やご提案はありますか?ありがとうございます。<\/SPAN><\/P><\/BODY><\/HTML>
<\/P>
<\/SPAN><\/P><\/P>問題は directions widget の設定にあるようです。<\/SPAN><\/P><\/P>アプリケーションをダウンロードしてウィジェットの設定コードを確認しようとしましたが、うまくいきませんでした。<\/SPAN><\/P><\/P>何かご意見やご提案はありますか?ありがとうございます。<\/SPAN><\/P><\/BODY><\/HTML>
Carlos,
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?
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/.
does the spinning icon ever go away? if so what does the web console say then?
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
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.