Is it possible to restrict the Header Controller Search function to just my Map Service? I have it set up to look in my map service (2011 National Population data) and do not want it to also add in results from a Geolocator service, Currently it is even through the headercontroller xml does not have it listed.Code I have is listed below.
<geocoder>
<mapservices>
<mapservice>
<layerids>1</layerids>
<searchfields>Country</searchfields>
<name>Country</name>
</mapservice>
</mapservices>
<zoomscale>10000000</zoomscale>
<labels>
<searchprompt>Search for a country</searchprompt>
<searchresulttitle>Places</searchresulttitle>
<clearfeaturelabel>Clear Results</clearfeaturelabel>
</labels>
</geocoder>
Solved! Go to Solution.
Ray,
Sure you just add usemapserviceonly to your geocoder tag:
<geocoder>
<usemapservicesonly>true</usemapservicesonly>
Ray,
Sure you just add usemapserviceonly to your geocoder tag:
<geocoder>
<usemapservicesonly>true</usemapservicesonly>
Perfect fix.
Ray,
Glad to help. Don't forget to click on the "Correct Answer" link.