<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Override graphics style - Search Widget in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/override-graphics-style-search-widget/m-p/452147#M41792</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am currently working on customizing the Simple Viewer javascript template and was wondering the best way to change the graphic color on a result from the new Search Widget (on a feature service)?&amp;nbsp; I have found the location of the default color settings, basic.js, but am trying to figure out the best way to override these settings.&amp;nbsp; Any help is appreciated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Geoff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Apr 2015 19:35:35 GMT</pubDate>
    <dc:creator>GeoffSchwitzgebel</dc:creator>
    <dc:date>2015-04-03T19:35:35Z</dc:date>
    <item>
      <title>Override graphics style - Search Widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/override-graphics-style-search-widget/m-p/452147#M41792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am currently working on customizing the Simple Viewer javascript template and was wondering the best way to change the graphic color on a result from the new Search Widget (on a feature service)?&amp;nbsp; I have found the location of the default color settings, basic.js, but am trying to figure out the best way to override these settings.&amp;nbsp; Any help is appreciated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Geoff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2015 19:35:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/override-graphics-style-search-widget/m-p/452147#M41792</guid>
      <dc:creator>GeoffSchwitzgebel</dc:creator>
      <dc:date>2015-04-03T19:35:35Z</dc:date>
    </item>
    <item>
      <title>Re: Override graphics style - Search Widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/override-graphics-style-search-widget/m-p/452148#M41793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you just want to modify the color of the results from the search you can add the following rule to the application's css file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;.arcgisSearch .searchMenu{
color: #F0F;
}
&lt;/PRE&gt;&lt;P&gt;In the above example the search results will now be magenta.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 20:10:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/override-graphics-style-search-widget/m-p/452148#M41793</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2021-12-11T20:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: Override graphics style - Search Widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/override-graphics-style-search-widget/m-p/452149#M41794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kelly,&lt;/P&gt;&lt;P&gt;I want to change the color of polygon graphics returned by a successful search.&amp;nbsp; The current result is orange (227,139,79,0.8).&amp;nbsp; I'm not sure if this can be done with CSS or not.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="SearchPolyGraphics.jpg" class="image-1 jive-image" height="502" src="https://community.esri.com/legacyfs/online/81448_SearchPolyGraphics.jpg" style="width: 566px; height: 502.097px;" width="566" /&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Geoff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2015 20:15:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/override-graphics-style-search-widget/m-p/452149#M41794</guid>
      <dc:creator>GeoffSchwitzgebel</dc:creator>
      <dc:date>2015-04-03T20:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: Override graphics style - Search Widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/override-graphics-style-search-widget/m-p/452150#M41795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok now I see. Then you'll need to create a new symbol and set it as the map's info window default fill symbol. For example this line sets it to a transparent black color.&amp;nbsp; Note that if your code doesn't already load the esri/symbols/SimpleFillSymbol and esri/Color modules you'll need to load them. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14280926463473715 jive_text_macro" data-renderedposition="92_8_912_16" jivemacro_uid="_14280926463473715"&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.map.infoWindow.set("fillSymbol", new SimpleFillSymbol().setColor(new esriColor([0,0,0,.4])));&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the simple viewer template a good spot to add that code would be right after the line that adds the light class to the map's info window at approximately line 285 of main.js.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've attached an updated main.js file that contains the updates. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2015 20:26:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/override-graphics-style-search-widget/m-p/452150#M41795</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2015-04-03T20:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: Override graphics style - Search Widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/override-graphics-style-search-widget/m-p/452151#M41796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Geoff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Apr 2015 18:22:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/override-graphics-style-search-widget/m-p/452151#M41796</guid>
      <dc:creator>GeoffSchwitzgebel</dc:creator>
      <dc:date>2015-04-06T18:22:36Z</dc:date>
    </item>
  </channel>
</rss>

