Locate Widget: configure to default City and State

782
1
06-02-2013 11:49 PM
JayDira
New Contributor
Hello,

I'm trying to default the City and State to the Locate widget but I have not had any luck with results. ANy suggestion on what maybe incorrect on this config.

Thanks

<?xml version="1.0" ?>
<configuration label="U.S. Geocoding">
<usesingleline>true</usesingleline>
    <locator>http://tasks.arcgisonline.com/ArcGIS/rest/services/Locators/TA_Streets_US_10/GeocodeServer</locator>
<fields>
<field name="City" defaultvalue="orange"/>
<field name="State" defaultvalue="ca"/>
</fields>
    <minscore>40</minscore>
    <zoomscale>10000</zoomscale>
</configuration>
Tags (2)
0 Kudos
1 Reply
AnthonyGiles
Frequent Contributor
Jay,

Try setting usesingleline to false:

<?xml version="1.0" ?>
<configuration label="U.S. Geocoding">
<usesingleline>false</usesingleline>
<locator>http://tasks.arcgisonline.com/ArcGIS/rest/services/Locators/TA_Streets_US_10/GeocodeServer</locator>
<fields>
<field name="City" defaultvalue="orange"/>
<field name="State" defaultvalue="ca"/>
</fields>
<minscore>40</minscore>
<zoomscale>10000</zoomscale>
</configuration>

Regards

Anthony
0 Kudos