Disable "ArcGIS World Grocoding" in Search widget

917
3
Jump to solution
02-15-2019 08:35 AM
MiroslavMatovic
New Contributor II

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?

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
MiroslavMatovic
New Contributor II

var searchWidget = new Search({
view: view,
includeDefaultSources: false,
sources: searchSources
});

View solution in original post

3 Replies
MiroslavMatovic
New Contributor II

var searchWidget = new Search({
view: view,
includeDefaultSources: false,
sources: searchSources
});

Guy_srb
New Contributor III

thanks!

0 Kudos
DougSims_GT
Occasional Contributor

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. 

0 Kudos