<?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 Re: Change the symbol displayed for Search widget - highlight question in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-the-symbol-displayed-for-search-widget/m-p/556974#M51967</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tracy, I think you want to set highlight to false on the popup.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/jsapi/popup-amd.html#highlight" title="https://developers.arcgis.com/javascript/jsapi/popup-amd.html#highlight"&gt;Popup | API Reference | ArcGIS API for JavaScript&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Jul 2015 20:45:59 GMT</pubDate>
    <dc:creator>MattDriscoll</dc:creator>
    <dc:date>2015-07-28T20:45:59Z</dc:date>
    <item>
      <title>Change the symbol displayed for Search widget - highlight question</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-the-symbol-displayed-for-search-widget/m-p/556971#M51964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wanted to be able to use my own icon for the Search widget, so I changed the source as:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp; var searchTool = new Search ({
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map:map,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; minCharacters: 8, 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; countryCode: "US", 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; searchExtent:startExtent
&amp;nbsp;&amp;nbsp; }, dom.byId('searchDiv'));

&amp;nbsp;&amp;nbsp; var sources = [];

&amp;nbsp;&amp;nbsp; sources.push({
&amp;nbsp;&amp;nbsp;&amp;nbsp; locator: new Locator("//geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer"),
&amp;nbsp;&amp;nbsp;&amp;nbsp; singleLineFieldName: "SingleLine",
&amp;nbsp;&amp;nbsp;&amp;nbsp; outFields: ["Addr_type"],
&amp;nbsp;&amp;nbsp;&amp;nbsp; name: "World Geocode Service",
&amp;nbsp;&amp;nbsp;&amp;nbsp; localSearchOptions: {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; minScale: 300000,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; distance: 50000
&amp;nbsp;&amp;nbsp;&amp;nbsp; },
&amp;nbsp;&amp;nbsp;&amp;nbsp; placeholder: "Enter an address or place",
&amp;nbsp;&amp;nbsp;&amp;nbsp; highlightSymbol: new PictureMarkerSymbol(geoSymbol).setOffset(9, 18)
&amp;nbsp; });
&amp;nbsp;&amp;nbsp; searchTool.set("sources", sources);
&amp;nbsp;&amp;nbsp; searchTool.startup();&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also have a popup defined as&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt; highlightMarkerSymbol = new SimpleMarkerSymbol(SimpleMarkerSymbol.STYLE_CIRCLE, 22,
&amp;nbsp;&amp;nbsp;&amp;nbsp; new SimpleLineSymbol(SimpleLineSymbol.STYLE_SOLID,
&amp;nbsp;&amp;nbsp;&amp;nbsp; new Color([255,255,0]), 2),new Color([255,255,0,0.5]));

 highlightFillSymbol = new SimpleFillSymbol(SimpleFillSymbol.STYLE_SOLID, new SimpleLineSymbol(SimpleLineSymbol.STYLE_SOLID, 
&amp;nbsp;&amp;nbsp;&amp;nbsp; new Color([255,200,0]), 2), new Color([255,255,0,0.50]));
&amp;nbsp; var popup = new Popup({
markerSymbol: highlightMarkerSymbol}, domConstruct.create("div"));

&amp;nbsp;&amp;nbsp; map = new Map("mapDiv", { 
&amp;nbsp;&amp;nbsp;&amp;nbsp; infoWindow: popup,
&amp;nbsp;&amp;nbsp;&amp;nbsp; basemap: "streets",
&amp;nbsp;&amp;nbsp;&amp;nbsp; center: [-92.593, 38.5],
&amp;nbsp;&amp;nbsp;&amp;nbsp; zoom: 7
&amp;nbsp;&amp;nbsp; }); &lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I&amp;nbsp; need the popup for other sections of my code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Every time I use the Search, I see both the orange flag I defined for the symbol, as well as the yellow highlighted circle I have defined in my popup.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I add the parameter enableHighlight:false to my definition, that removes my flag symbol only and I still have my yellow highlightMarkerSymbol.&amp;nbsp; This is the opposite of what I want to happen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I missing a parameter in my Search constructor or misreading what some of the parameters are for?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 00:03:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-the-symbol-displayed-for-search-widget/m-p/556971#M51964</guid>
      <dc:creator>TracySchloss</dc:creator>
      <dc:date>2021-12-12T00:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: Change the symbol displayed for Search widget - highlight question</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-the-symbol-displayed-for-search-widget/m-p/556972#M51965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you define your Sources array you can define a highlightSymbol&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/jsapi/search-amd.html#highlightsymbol" title="https://developers.arcgis.com/javascript/jsapi/search-amd.html#highlightsymbol"&gt;Search | API Reference | ArcGIS API for JavaScript&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2015 18:51:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-the-symbol-displayed-for-search-widget/m-p/556972#M51965</guid>
      <dc:creator>JoshHevenor</dc:creator>
      <dc:date>2015-07-23T18:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: Change the symbol displayed for Search widget - highlight question</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-the-symbol-displayed-for-search-widget/m-p/556973#M51966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a highlight symbol defined already.&amp;nbsp; What I'm seeing is two symbols - the pin as well as second highlighted circle.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2015 19:25:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-the-symbol-displayed-for-search-widget/m-p/556973#M51966</guid>
      <dc:creator>TracySchloss</dc:creator>
      <dc:date>2015-07-23T19:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: Change the symbol displayed for Search widget - highlight question</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-the-symbol-displayed-for-search-widget/m-p/556974#M51967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tracy, I think you want to set highlight to false on the popup.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/jsapi/popup-amd.html#highlight" title="https://developers.arcgis.com/javascript/jsapi/popup-amd.html#highlight"&gt;Popup | API Reference | ArcGIS API for JavaScript&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2015 20:45:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-the-symbol-displayed-for-search-widget/m-p/556974#M51967</guid>
      <dc:creator>MattDriscoll</dc:creator>
      <dc:date>2015-07-28T20:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: Change the symbol displayed for Search widget - highlight question</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-the-symbol-displayed-for-search-widget/m-p/556975#M51968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I still want the popup for selecting features for other reasons, though.&amp;nbsp; I ended up setting my highlight symbol to the orange flag and set showInfoWindowOnSelect to false.&amp;nbsp; It's opening the infoWindow, apparently, that's causing my yellow highlighted symbol.&amp;nbsp; If I don't show it, then I'm only seeing the flag I want.&amp;nbsp; It still shows up when I click to see the information, but that makes more sense than having two different symbols show up right when I search (one for the location and the 2nd that's the highlight from showInfoWindowOnSelect). &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2015 21:34:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-the-symbol-displayed-for-search-widget/m-p/556975#M51968</guid>
      <dc:creator>TracySchloss</dc:creator>
      <dc:date>2015-07-28T21:34:50Z</dc:date>
    </item>
  </channel>
</rss>

