requesterror イベントで遊んでいます。CodePen でテストしています。どちらかのサービスのURLを「bad」URLに変更すると、複数のエラーメッセージが表示されます。
条件文や他の方法でメッセージを一度だけ表示する方法はありますか?例えば、「/query」や「/exportto」ではなく、単純なサービスURLだけを使うなどです。
一般的なメッセージを追加することもできますが、メッセージにサービスURLを含めたいと思っています。
the error is definitely going to fire the event every time, but you could add some logic in your handler to strip operations like `/export` and `/query` from the url and compare it to what you've already displayed and only selectively bubble up a warning to users.
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.