Hi,
I am trying to add two Locators as sources to the Search Widget in the Arcgis Js 4.7 Api. However, only one of the Locators is working. Both of these Locators are publicly available by New York State. The Address and Street Locator is working, but the Place Locator will not work, meaning that if you type in a place in NYS, such as, "Albany, ny" or "latham, ny", the Place Locator will not find it. Is there some configuration that I am missing that will get both of these Locators to work? The Place Locator does work in other contexts, like in Web AppBuilder Apps, but not in ArcGis JS 4.x api. Here is my current code to add the Search Widget. Thanks in advance for your help!
Solved! Go to Solution.
The single line field name is "SingleLineCityName" in the locator your are using, whereas you have configured it as "singleLine".
Here is link using above configured locators with 4.x API sample
The single line field name is "SingleLineCityName" in the locator your are using, whereas you have configured it as "singleLine".
Here is link using above configured locators with 4.x API sample
Ah. I see where you found that in the service.
Thanks a lot for your help! I really appreciate it!