Select to view content in your preferred language

Enhanced Search Widget - Change selection color

2293
2
Jump to solution
02-13-2012 07:13 AM
AshleyPeters
Frequent Contributor
I'd like to change the color of the selected features within Robert's Enhanced Search widget. I've changed the code under the SearchWidget.mxml to be the 'ESRI selection' color instead of the default red.

However, when I run FlashBuilder to test the change, the change is not reflected and the selected features still come back as red.

Any suggestions?

Thanks in advance!

Ashley
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus
Ashley,

   The selection color is controlled by this block in the SearchWidget.xml

    <symbols>         <simplefillsymbol color="0xff0000" alpha="0.5">             <outline color="0xff0000" alpha="0.8" width="2" />         </simplefillsymbol>         <!-- You can have one or the other, either simplemarkersymbol or picturemarkersymbol              defined for your point results NOT BOTH. picturemarkersymbol will override              simplemarkersymbol if you do not have it commented out. -->         <!--<simplemarkersymbol style="square" size="12" color="0xff0000" alpha="0.5"              xoffset="0" yoffset="0" angle="0"> <outline style="solid" color="0x000000"              alpha="1" width="1"/> </simplemarkersymbol> -->         <picturemarkersymbol url="assets/images/i_search.png" height="30" width="30" xoffset="0" yoffset="0" />         <simplelinesymbol color="0xff0000" alpha="0.8" width="2" />     </symbols>


Don't forget to click the Mark as answer check and to click the top arrow (promote) as shown below:

View solution in original post

0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus
Ashley,

   The selection color is controlled by this block in the SearchWidget.xml

    <symbols>         <simplefillsymbol color="0xff0000" alpha="0.5">             <outline color="0xff0000" alpha="0.8" width="2" />         </simplefillsymbol>         <!-- You can have one or the other, either simplemarkersymbol or picturemarkersymbol              defined for your point results NOT BOTH. picturemarkersymbol will override              simplemarkersymbol if you do not have it commented out. -->         <!--<simplemarkersymbol style="square" size="12" color="0xff0000" alpha="0.5"              xoffset="0" yoffset="0" angle="0"> <outline style="solid" color="0x000000"              alpha="1" width="1"/> </simplemarkersymbol> -->         <picturemarkersymbol url="assets/images/i_search.png" height="30" width="30" xoffset="0" yoffset="0" />         <simplelinesymbol color="0xff0000" alpha="0.8" width="2" />     </symbols>


Don't forget to click the Mark as answer check and to click the top arrow (promote) as shown below:
0 Kudos
AshleyPeters
Frequent Contributor
Thanks Robert!
0 Kudos