I am using ArcGIS API for JavaScript 4.10 for a map with a Search widget and I want to use it to match locations only from a private featureLayer. I have set this featureLayer in sources property of the Search widget and it appears and works, but there is also another search layer here called "ArcGIS World Grocoding". How can I remove/disable this default feature so that my Search widged works with only my data?
Solved! Go to Solution.
var searchWidget = new Search({
view: view,
includeDefaultSources: false,
sources: searchSources
});
var searchWidget = new Search({
view: view,
includeDefaultSources: false,
sources: searchSources
});
thanks!
I just want to say you are an excellent person to come back and post the answer on your own post. This was the first hit on my search for this, and it immediately answered the question. Then I look to see that you answered your own question.
Thank you for being a wonderful contribution to this community.