Stop header controller search using default geocoder

2986
2
Jump to solution
07-04-2013 03:01 PM
HaroldJohnson
New Contributor II
Hi,

I apolgise if this has been answered before but i have looked and cannot see the answer anywhere. I have set up the search box in the header controller to search against a layer in one of my map services but it always searches using a geocode service on arcgis.com as well. Is there a way to stop this.

Any help appreciated, I am using the compiled version on 3.3
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
AnthonyGiles
Frequent Contributor
Harold,

You need to add a usemapservicesonly tag with a value of true in between your geocoder tags, ie:

<geocoder>   <usemapservicesonly>true</usemapservicesonly> </geocoder>

See the help here:

http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/Header_Controller_widget_tags/0...

Regards

Anthony

View solution in original post

2 Replies
AnthonyGiles
Frequent Contributor
Harold,

You need to add a usemapservicesonly tag with a value of true in between your geocoder tags, ie:

<geocoder>   <usemapservicesonly>true</usemapservicesonly> </geocoder>

See the help here:

http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/Header_Controller_widget_tags/0...

Regards

Anthony
HaroldJohnson
New Contributor II
Thanks Anthony that did the trick
0 Kudos