How do I disable this prompt "Use current location" with the JavaScript SDK API for SearchWidget?
I only want to search within the custom source layer. No location needed. I can't find any API for this.
When instantiating the Search widget, set locationEnabled to false:
const searchWidget = new Search({ locationEnabled: false, view: view });
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.