Select to view content in your preferred language

Composite Locator with 3.7 geocoder widget

975
3
10-23-2013 11:26 AM
RobertHauck
Deactivated User
Is anyone using a composite locator with the 3.7 Geocoder widget?  I can't get our composite locator to work after upgrading to 3.7.  It won't even fire the on select event.  Non-composite locators to work fine and the composite locator works with older api versions.

Any ideas?  Anyone using a composite locator with 3.7?
0 Kudos
3 Replies
RobertHauck
Deactivated User
Figured it out.  Had to do with the Single Line Address Field name being different in the composite locator service than what the widget sends by default.  I'm not sure if this is something you set when creating the locator.  The widget sends "Single Line Input" while the composite locator wants "SingleLine".  Fixed it by adding this line to the service setup options. 
singleLineFieldName: "SingleLine"


More about it:
http://forums.arcgis.com/threads/75070-Geocoder-dijit-in-JS-API-v3.3-bug-quot-SingleKey-quot-vs-quot....
0 Kudos
MartinAshmore
Deactivated User

Thanks Robert. You just saved me a considerable amount of head scratching. I had the same thing, my locator worked fine to get candidates via the rest service test, but then did nothing in my application. Specifying the field in the geocoders object fixed the issue.

0 Kudos
JeffPace
MVP Alum
thank you for reporting back with the solution
0 Kudos