Hi Robert,
I was just working on this yesterday and I have set multiple sources in search widget and they work fine, and I get suggestions when each one is selected, depending on the field I specified in the code.
I want to know is there a way to change the title for "ESRI World Geocoder" to something else which is easier for everyone to understand, like " Search" or anything else.
Thanks.
Solved! Go to Solution.
Saloni,
Sure the "ESRI World Geocoder" is just a API default string for the search widget. So just add the following require and var and then this one line of code.
Require: "dojo/i18n!esri/nls/jsapi",
Var: esriBundle
esriBundle.widgets.Search.main.esriLocatorName = "something new";
Saloni,
Sure the "ESRI World Geocoder" is just a API default string for the search widget. So just add the following require and var and then this one line of code.
Require: "dojo/i18n!esri/nls/jsapi",
Var: esriBundle
esriBundle.widgets.Search.main.esriLocatorName = "something new";
Thanks, Robert. It worked!
Thanks, Saloni!
Is there a way to remove that completely?
Richard,
If you are asking about not having the "ESRI World Geocoder" as a source option than you just need to overwrite the Search Widgets sources property instead of adding to the array.
Got it!
Thank you Robert