Select to view content in your preferred language

Enhanced Search Highlight Colour

746
1
12-14-2010 05:27 PM
IanHamilton
Deactivated User
I guess this will apply to any of the seach widgets but I am interseted in changing the highlight colour of the search results. When I have several layers which intersect the effect is that you can't see what you were seaching for as it blanked out by red. Can I change this to perhaps just the boundaries or a very transparent fill.

Also I havent added the lines
graphicsLayer.name = "myGraLay";
graphicsLayer.id = "myGraLay";

of code for the Eseach widget and all seems to be working - what do these do ?
Tags (2)
0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Emeritus
Ian,

   Those lines allow me to use graphics drawn using the Draw Widget to be used in the graphical search when you click on the pen button.

To change the selected graphics symbology is really easy just set the values in the SearchWidget.xml
Like below:
 <symbols>
     <simplefillsymbol color="0xff0000" alpha="0.5">
      <outline color="0xff0000" alpha="0.8" width="2"/>
     </simplefillsymbol>
     <picturemarkersymbol url="assets/images/i_search.png" height="30" width="30" xoffset="0" yoffset="0" />
  <simplelinesymbol color="0xff0000" alpha="0.8" width="2"/>
    </symbols>
0 Kudos