Select to view content in your preferred language

Header Controller Search - restrict to just my Map Service

1082
3
Jump to solution
07-17-2014 11:01 AM
RayCrew
Frequent Contributor

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.

search for cuba.png

<geocoder>

    <mapservices>

        <mapservice>

            <url>http://geo022appd.boc.ad.census.gov:6080/arcgis/rest/services/Global_Population_Map/GPMV_Population/...</url> 

            <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>

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Ray,

  Sure you just add usemapserviceonly to your geocoder tag:

<geocoder>

    <usemapservicesonly>true</usemapservicesonly>

View solution in original post

3 Replies
RobertScheitlin__GISP
MVP Emeritus

Ray,

  Sure you just add usemapserviceonly to your geocoder tag:

<geocoder>

    <usemapservicesonly>true</usemapservicesonly>

RayCrew
Frequent Contributor

Perfect fix. 

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Ray,

   Glad to help. Don't forget to click on the "Correct Answer" link.

0 Kudos