Select to view content in your preferred language

Search widget results point symbols

2225
2
12-22-2011 03:53 AM
LeanneKnott
New Contributor
I am using the Search widget for my FlexViewer 2.4 application and would like to change the points results graphical icon from the i_search.png to a different icon. Can anyone show me how to change this in the MXML code? Thanks.
Tags (2)
0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus
Leanne,

   It is actually quite simple and does not even require a code change. As you can find here in the documentation for the SearchWidget under the very bottom symbols section:

http://help.arcgis.com/en/webapps/flexviewer/help/index.html#/Search_widget_tags/01m300000023000000/...

All you have to do is add the symbols portions to the Search widgets XML configuration file:

    <symbols>
        <simplefillsymbol color="0xff0000" alpha="0.5">
            <outline color="0xff0000" alpha="0.8" width="2" />
        </simplefillsymbol>
        <picturemarkersymbol url="assets/images/i_lego.png" height="30" width="30" xoffset="0" yoffset="0" />
        <simplelinesymbol color="0xff0000" alpha="0.8" width="2" />
    </symbols>
0 Kudos
LeanneKnott
New Contributor
Hi Robert, thanks, I will give it a try. By the way, count me as a big fan of your custom widgets.
0 Kudos