Select to view content in your preferred language

Editing the Locator Widget

2204
8
Jump to solution
03-13-2013 03:08 PM
NeilMillward
Regular Contributor
I would like to add an example of what people should type into the street box such as "300 E Chapman Ave" so that they type in the correct format to locate the address.

On the standard locator widget there is a label that says "Enter the Address". I would like to be able to modify this to say " Enter the Address eg: 300 E Chapman Ave" but I cannot find where or how to do this. I have looked at the code in the LocateWidget.xml file but could not find this text.

Any help would be appreciated.
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RhettZufelt
MVP Notable Contributor
Thanks Anthony. 

I am pretty new to this. There doesn't seem to be anywhere in the application builder to do this. Do I just need to add these edits to the LocateWidget.xml. 

This is my current file. 
?xml version="1.0" ?> <configuration>     <labels>         <addresstitle>Enter the Address eg: 300 E Chapman Ave</addresstitle>     </labels>         <locator>http://civ-gisapp-vm1:6080/arcgis/rest/services/AddressPointLocator/GeocodeServer</locator>     <usesearchextent>false</usesearchextent>     <minscore>10</minscore>     <zoomscale>10000</zoomscale> </configuration>


I don't use app builder, but you should be able to add it in the LocateWidget.xml.

R_

View solution in original post

0 Kudos
8 Replies
RhettZufelt
MVP Notable Contributor
Here are the available "labels" for the locate widget.  Can be found in the VewerStrings.properties file:

########## Locate Widget
locateSubmitLabel=Locate
addressLabel=Address
coordinatesLabel=Coordinates
addressTitle=Enter the address
coordinatesTitle=Enter the coordinates
xLabel=Longitude (X)
yLabel=Latitude (Y)
locationsLabel=Locations found:
bingCulture=en-US
requiredFields=Required fields:
requiredField=Required field:
deleteResultTooltip=Delete result
resultScoreText=Score:
bingResultConfidenceText=Confidence:


R_
0 Kudos
NeilMillward
Regular Contributor
Thanks Rhett. Where would I find the ViewerStrings.properties file?
0 Kudos
RhettZufelt
MVP Notable Contributor
Assuming you are using the source code, would be in the locale/en_US folder in FlashBuilder package explorer.

R_
0 Kudos
NeilMillward
Regular Contributor
I am using the compiled version. I don't have FlashBuilder.
0 Kudos
AnthonyGiles
Honored Contributor
Neil,

If you are using the out of the box locator widget you can use the addresstitle tag under labels to provide what ever example you would like, see:

http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/Locate_widget_tags/01m30000000r...

Regards

Anthony

E.g.

<labels>
   <addresstitle>Enter House Number & Street Name e.g. 300 New Street</addresstitle>
</labels>
0 Kudos
NeilMillward
Regular Contributor
Thanks Anthony.

I am pretty new to this. There doesn't seem to be anywhere in the application builder to do this. Do I just need to add these edits to the LocateWidget.xml.

This is my current file.

?xml version="1.0" ?>
<configuration>
    <locator>http://civ-gisapp-vm1:6080/arcgis/rest/services/AddressPointLocator/GeocodeServer</locator>
    <usesearchextent>false</usesearchextent>
    <minscore>10</minscore>
    <zoomscale>10000</zoomscale>
</configuration>
0 Kudos
RhettZufelt
MVP Notable Contributor
Thanks Anthony. 

I am pretty new to this. There doesn't seem to be anywhere in the application builder to do this. Do I just need to add these edits to the LocateWidget.xml. 

This is my current file. 
?xml version="1.0" ?> <configuration>     <labels>         <addresstitle>Enter the Address eg: 300 E Chapman Ave</addresstitle>     </labels>         <locator>http://civ-gisapp-vm1:6080/arcgis/rest/services/AddressPointLocator/GeocodeServer</locator>     <usesearchextent>false</usesearchextent>     <minscore>10</minscore>     <zoomscale>10000</zoomscale> </configuration>


I don't use app builder, but you should be able to add it in the LocateWidget.xml.

R_
0 Kudos
NeilMillward
Regular Contributor
Thanks Rhett this worked.
0 Kudos