Select to view content in your preferred language

Locator Widget Configuration

1855
4
Jump to solution
04-08-2013 02:27 PM
ChrisCorwin
Frequent Contributor
I checked out the Locator Widget help page (http://resources.arcgis.com/en/help/flex-viewer/concepts/#/Locate_widget/01m300000037000000/) and it has multiple lines to enter the street address, city, and state and zip.

How do I configure my locator widget to look like that?

Thanks!
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
AnthonyGiles
Honored Contributor
Chris,

You need to edit your locator widget config file, make sure you set the usesingleline tag to false then you can add multiple field tags for each line, see:

http://resources.arcgis.com/en/help/flex-viewer/concepts/#/Locate_widget_tags/01m30000000r000000/GUI...

You must ensure that the name of the field matches the name of the appropate field in the REST endpoint for the geocode service

Regards

Anthony

View solution in original post

0 Kudos
4 Replies
AnthonyGiles
Honored Contributor
Chris,

You need to edit your locator widget config file, make sure you set the usesingleline tag to false then you can add multiple field tags for each line, see:

http://resources.arcgis.com/en/help/flex-viewer/concepts/#/Locate_widget_tags/01m30000000r000000/GUI...

You must ensure that the name of the field matches the name of the appropate field in the REST endpoint for the geocode service

Regards

Anthony
0 Kudos
ChrisCorwin
Frequent Contributor
Will this work with a composite locator?
0 Kudos
AnthonyGiles
Honored Contributor
There should be no reason why not, I have only set it up against single locators
0 Kudos
ChrisCorwin
Frequent Contributor
Hey Anthony,

Sorry for the novice question, but how do I make the other fields not show up. I only want the address and city fields to show up, but it shows all the fields such as neighborhood, and postal. I plan to use a different geolocator than the ESRI one, but it will have a couple of other fields also. This is my current code.
<usesingleline>false</usesingleline>
<fields>
<field name="Address" alias="Street Address"/>
<field name="City" alias="City"/>
</fields>


Any help would be greatly appreciated.
Thanks!
Chris
0 Kudos