Select to view content in your preferred language

Address Locator

798
2
10-10-2013 07:59 AM
BrianMcLeer1
Emerging Contributor
I am having trouble finding a way to add an address locator bar in Silverlight Viewer similar to the one that is available in Flex Viewer. I know you can use the search feature and type in an address, I am trying to eliminate extra steps by having a single address search bar at the top. Does anyone know of a way to do this? Thanks for your help.
0 Kudos
2 Replies
brettangel
Frequent Contributor
You can add multiple address locators to the Search tool in the SL Viewer 3.1.  Tools->Manage->Current Tools->Select Search and configure.  It will search multiple locators with a single entry.
0 Kudos
RichZwaap
Frequent Contributor
Hi Brian:

As Brett points out, the out-of-the-box search tool provides similar functionality to what you're requesting.  However, there is the additional inconvenience that you need to click a button to open the search UI.  To implement a search box that's embedded in the Viewer's header, you'll need to implement a custom control, then modify the Viewer layouts to include that control.  You can find an example of a textbox control exposed in the Viewer header here.  The example shows embedding a label that can be configured in the Application Builder, and it only shows including it in one layout.  Still, the approach to embedding a custom control in a layout is applicable here.

Hope this helps.
0 Kudos