<?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: Remove Result Graphic following Search - ArcGIS API for JS v4.16 in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-result-graphic-following-search-arcgis-api/m-p/2319#M181</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The strange thing is that when I revert back to ArcGIS API for JS v 4.11, the cyan feature isn't added. As soon as I move to 4.12 or more recent, it's added and I can't get it to go away.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there something I can do with the resultGraphic parameter or do you have any examples of using the resultGrahic in the Search tool? At this point, I'm willing to just style it in a way that it is hidden from view. The documentation for Search says this about the resultGraphic, but I can't find any examples online of how to set this up:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DL style="margin-bottom: 1.5rem;"&gt;&lt;DD style="margin-left: 0.75rem;"&gt;&lt;DIV class="" style="margin-bottom: 0.625rem;"&gt;&lt;P style="margin-bottom: 1.5rem;"&gt;The graphic used to highlight the resulting feature or location.&lt;/P&gt;&lt;DIV class="" style="background-color: #f8f8f8; border: 1px solid #efefef; margin-bottom: 1.5rem; padding: 0.99rem;"&gt;&lt;P style="margin-bottom: 1.5rem;"&gt;A graphic will be placed in the View's&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#graphics" style="color: #0079c1; text-decoration: none;"&gt;graphics&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;for&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html" style="color: #0079c1; text-decoration: none;"&gt;layer views&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;that do not support the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE style="color: #595959; background-color: #ffffff; border: 1px solid #efefef; font-size: 0.875em;"&gt;highlight&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;method.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DD&gt;&lt;/DL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Jul 2020 16:00:41 GMT</pubDate>
    <dc:creator>PaulMcCord</dc:creator>
    <dc:date>2020-07-27T16:00:41Z</dc:date>
    <item>
      <title>Remove Result Graphic following Search - ArcGIS API for JS v4.16</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-result-graphic-following-search-arcgis-api/m-p/2315#M177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using the Search widget to allow users to search for parcel addresses. The Search process is working properly except it places a blue graphic on the map even though I'm specifying that I don't want a graphic. I'm assigning my own symbology to the selected feature (the orange border in the below image), and I don't want the additional blue graphic that is being forced on the selected feature.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Selected feature following search" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/501379_selectedFeature.PNG" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my code for the search process:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="comment token"&gt;//Create search tool to search addresses&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;const&lt;/SPAN&gt; searchTool &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;Search&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
        view&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; myView&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
        sources&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;
            &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
                layer&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; parcelLyr&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
                searchFields&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"propstreet"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
                displayField&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"propstreet"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
                name&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"LayerSearchSource"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
                placeholder&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"example: 500 Griswold"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
                suggestionsEnabled&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;true&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
                &lt;SPAN class="comment token"&gt;//autoNavigate: true,&lt;/SPAN&gt;
                resultGraphicEnabled&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;false&lt;/SPAN&gt;
            &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
            
        &lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
        container&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; addressSearchBar&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
        includeDefaultSources&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;false&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
        resultGraphicEnabled&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;false&lt;/SPAN&gt;
    &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

    searchTool&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;on&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"select-result"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;function&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;event&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
        console&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;log&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"location was chosen "&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; event&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
        long &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; event&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;result&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;feature&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;geometry&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;centroid&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;longitude &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0.003&lt;/SPAN&gt;
        lat &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; event&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;result&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;feature&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;geometry&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;centroid&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;latitude
        myView&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;center &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;long&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; lat&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
        myView&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;zoom &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;16&lt;/SPAN&gt;
        console&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;log&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"geometry: "&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; event&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;result&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;feature&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;geometry&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
        selectedParcel &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; event&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;result&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;feature
        &lt;SPAN class="token function"&gt;createHighlightedParcel&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I create my own symbology in the createHighlightedParcel() function at the end. My understanding is that setting resultGraphicEnabled to false should remove the result graphic. Am I wrong about this? Is there another way to prevent the result graphic?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:06:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-result-graphic-following-search-arcgis-api/m-p/2315#M177</guid>
      <dc:creator>PaulMcCord</dc:creator>
      <dc:date>2021-12-10T20:06:22Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Result Graphic following Search - ArcGIS API for JS v4.16</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-result-graphic-following-search-arcgis-api/m-p/2316#M178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Paul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;The search widgets graphic is orange when the&amp;nbsp;&lt;/P&gt;&lt;PRE class="" style="color: #000000; background: #f5f2f0; border: 0px; margin: 0.5em 0px; padding: 1em 1em 1em 3.8em;"&gt;&lt;CODE style="border: 0px; font-weight: inherit;"&gt;resultGraphicEnabled: true&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;So the cyan color you are seeing is from the popup selection.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2020 14:25:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-result-graphic-following-search-arcgis-api/m-p/2316#M178</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2020-07-27T14:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Result Graphic following Search - ArcGIS API for JS v4.16</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-result-graphic-following-search-arcgis-api/m-p/2317#M179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Robert. I'm not sure if I understood your response. I set the popupEnabled option to 'false', but I'm still seeing the cyan symbology when the Search widget finishes. Is there another option I need to set?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2020 14:49:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-result-graphic-following-search-arcgis-api/m-p/2317#M179</guid>
      <dc:creator>PaulMcCord</dc:creator>
      <dc:date>2020-07-27T14:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Result Graphic following Search - ArcGIS API for JS v4.16</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-result-graphic-following-search-arcgis-api/m-p/2318#M180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Paul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; It is something in your code base, because when I set the resultGraphicEnablerd to false in the sample that allows for searching a polygon it does not have a cyan or orange graphic in the map (as expected). So that is why I thought that some where in your code you are using the popup (which applies a cyan fill to the selected graphic).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2020 14:57:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-result-graphic-following-search-arcgis-api/m-p/2318#M180</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2020-07-27T14:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Result Graphic following Search - ArcGIS API for JS v4.16</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-result-graphic-following-search-arcgis-api/m-p/2319#M181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The strange thing is that when I revert back to ArcGIS API for JS v 4.11, the cyan feature isn't added. As soon as I move to 4.12 or more recent, it's added and I can't get it to go away.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there something I can do with the resultGraphic parameter or do you have any examples of using the resultGrahic in the Search tool? At this point, I'm willing to just style it in a way that it is hidden from view. The documentation for Search says this about the resultGraphic, but I can't find any examples online of how to set this up:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DL style="margin-bottom: 1.5rem;"&gt;&lt;DD style="margin-left: 0.75rem;"&gt;&lt;DIV class="" style="margin-bottom: 0.625rem;"&gt;&lt;P style="margin-bottom: 1.5rem;"&gt;The graphic used to highlight the resulting feature or location.&lt;/P&gt;&lt;DIV class="" style="background-color: #f8f8f8; border: 1px solid #efefef; margin-bottom: 1.5rem; padding: 0.99rem;"&gt;&lt;P style="margin-bottom: 1.5rem;"&gt;A graphic will be placed in the View's&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#graphics" style="color: #0079c1; text-decoration: none;"&gt;graphics&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;for&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html" style="color: #0079c1; text-decoration: none;"&gt;layer views&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;that do not support the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE style="color: #595959; background-color: #ffffff; border: 1px solid #efefef; font-size: 0.875em;"&gt;highlight&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;method.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DD&gt;&lt;/DL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2020 16:00:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-result-graphic-following-search-arcgis-api/m-p/2319#M181</guid>
      <dc:creator>PaulMcCord</dc:creator>
      <dc:date>2020-07-27T16:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Result Graphic following Search - ArcGIS API for JS v4.16</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-result-graphic-following-search-arcgis-api/m-p/2320#M182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Paul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Have you tried view.graphics.removeAll()?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2020 16:05:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-result-graphic-following-search-arcgis-api/m-p/2320#M182</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2020-07-27T16:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Result Graphic following Search - ArcGIS API for JS v4.16</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-result-graphic-following-search-arcgis-api/m-p/2321#M183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;view.graphics.removeAll() doesn't remove it from the map view. When I console.log view.graphics.length, there are no graphics even before I try to remove any graphics. I'm at a loss as to why this graphic is appearing and how to remove it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2020 17:13:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-result-graphic-following-search-arcgis-api/m-p/2321#M183</guid>
      <dc:creator>PaulMcCord</dc:creator>
      <dc:date>2020-07-27T17:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Result Graphic following Search - ArcGIS API for JS v4.16</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-result-graphic-following-search-arcgis-api/m-p/2322#M184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Paul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Have you tried to see if the Seach widgets&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;resultGraphic is a graphic or is it null?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2020 17:15:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-result-graphic-following-search-arcgis-api/m-p/2322#M184</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2020-07-27T17:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Result Graphic following Search - ArcGIS API for JS v4.16</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-result-graphic-following-search-arcgis-api/m-p/2323#M185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's my process that runs after the Search tool executes. I put this process together to center the Map View on the result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;searchTool&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;on&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"select-result"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;function&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;event&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
        console&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;log&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"location was chosen "&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; event&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
        long &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; event&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;result&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;feature&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;geometry&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;centroid&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;longitude &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0.003&lt;/SPAN&gt;
        lat &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; event&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;result&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;feature&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;geometry&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;centroid&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;latitude
        myView&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;center &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;long&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; lat&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
        myView&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;zoom &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;16&lt;/SPAN&gt;
        selectedParcel &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; event&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;result&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;feature
        &lt;SPAN class="token function"&gt;createHighlightedParcel&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

        &lt;SPAN class="comment token"&gt;//Opens Parcel Info Panel and places results in panel&lt;/SPAN&gt;
        &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;$&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"#parcelInfoPanel"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;css&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"visibility"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;===&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"hidden"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
            console&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;log&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"in the show pacel info panel function"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
            &lt;SPAN class="token function"&gt;showParcelInfoPanel&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;  &lt;SPAN class="comment token"&gt;//Reveals panel with parcel information&lt;/SPAN&gt;
        &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
        console&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;log&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;selectedParcel&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
        &lt;SPAN class="token function"&gt;populateParcelPanel&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;selectedParcel&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;  &lt;SPAN class="comment token"&gt;//Grabs parcel information from parcel features for the parcel panel&lt;/SPAN&gt;
    &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm grabbing the result of the search in the second line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, when I unpack that object it the console, by clicking on target, then resultGraphic, the value of resultGraphic is an &lt;STRONG&gt;object&lt;/STRONG&gt;. Here is a screenshot of my console:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Result graphic details" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/501400_resultGraphic.PNG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:06:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-result-graphic-following-search-arcgis-api/m-p/2323#M185</guid>
      <dc:creator>PaulMcCord</dc:creator>
      <dc:date>2021-12-10T20:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Result Graphic following Search - ArcGIS API for JS v4.16</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-result-graphic-following-search-arcgis-api/m-p/2324#M186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then try&lt;/P&gt;&lt;P&gt;resultGraphic.layer.removeAll()&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2020 17:37:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-result-graphic-following-search-arcgis-api/m-p/2324#M186</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2020-07-27T17:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Result Graphic following Search - ArcGIS API for JS v4.16</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-result-graphic-following-search-arcgis-api/m-p/2325#M187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately, when I do this, it removes the yellow outline around the parcel and the cyan fill remains.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2020 17:51:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-result-graphic-following-search-arcgis-api/m-p/2325#M187</guid>
      <dc:creator>PaulMcCord</dc:creator>
      <dc:date>2020-07-27T17:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Result Graphic following Search - ArcGIS API for JS v4.16</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-result-graphic-following-search-arcgis-api/m-p/2326#M188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Paul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; So that tells me that the cyan fill is Not from the search widget then. Do you have something in your code that shows the popup or calls the feature layer views highlight method do you?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2020 18:06:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-result-graphic-following-search-arcgis-api/m-p/2326#M188</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2020-07-27T18:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Result Graphic following Search - ArcGIS API for JS v4.16</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-result-graphic-following-search-arcgis-api/m-p/2327#M189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've combed through my code, but I don't see anywhere where I'm showing popups or calling the feature layer views highlight method. In fact, I'm intentionally staying away from popups since I'm showing the parcel attribute information in a sidebar that's part of the application.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2020 18:46:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-result-graphic-following-search-arcgis-api/m-p/2327#M189</guid>
      <dc:creator>PaulMcCord</dc:creator>
      <dc:date>2020-07-27T18:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Result Graphic following Search - ArcGIS API for JS v4.16</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-result-graphic-following-search-arcgis-api/m-p/2328#M190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Paul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Are you using the FeatureForm widget or any other widget that might produce a highlight?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2020 19:17:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-result-graphic-following-search-arcgis-api/m-p/2328#M190</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2020-07-27T19:17:27Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Result Graphic following Search - ArcGIS API for JS v4.16</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-result-graphic-following-search-arcgis-api/m-p/2329#M191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm only using the Search widget.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something that I've noticed is that right when I start revising my search after initially making a search, the cyan shading is removed. Here are a couple of screen shots to show you what I mean.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this screenshot, I searched for 500 Griswold, which returned my symbology which I'm calling from my own function (the yellow border) as well as the cyan fill.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="501415" alt="Search with correct address" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/501415_search1.PNG" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the below screenshot, I've removed the 'd' from Griswold, and it immediately removes the cyan fill:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="501422" alt="Revised search" class="jive-emoji jive-image image-2 j-img-original" src="https://community.esri.com/legacyfs/online/501422_search2.PNG" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this a clue for why the cyan fill is being applied?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also,&lt;/P&gt;&lt;P&gt;I have a process that removes the entire parcel layer when the user zooms out too far. When I do this when the cyan fill is on the map, it is removed when I reach the level where the parcel layer is removed from the map. When I zoom back in (which puts the parcel layer back on the map), the cyan fill does not return... the parcel layer is added back to the map with the yellow outline for the selected parcel, but there is no cyan object. Before I zoom out to remove the parcel layer, I run console.log(view.layerView.length)and get a value of '2'. When I zoom out and then back in, which removes the cyan object but places the parcel layer and yellow outline back on the map, I still get a value of 2 when running console.log(view.layerView.length). So, when I run console.log() the first time and I'm returned a value of '2', the cyan object is not part of that count.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2020 19:25:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-result-graphic-following-search-arcgis-api/m-p/2329#M191</guid>
      <dc:creator>PaulMcCord</dc:creator>
      <dc:date>2020-07-27T19:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Result Graphic following Search - ArcGIS API for JS v4.16</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-result-graphic-following-search-arcgis-api/m-p/2330#M192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm returning to this issue today after taking a break from it. I still have not found a solution. One additional thing that I've discovered is that when I use the 'X' to clear my search result from the map, it removes the search object. This again makes me think that the issue is related to the Search widget.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If we've reached a dead end, is there another resource I should try aside from Geonet? Would calling ESRI tech support be an option? I still need to figure out a way to get this cyan object off from the map since it's confusing for the user.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2020 12:57:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-result-graphic-following-search-arcgis-api/m-p/2330#M192</guid>
      <dc:creator>PaulMcCord</dc:creator>
      <dc:date>2020-07-30T12:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Result Graphic following Search - ArcGIS API for JS v4.16</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-result-graphic-following-search-arcgis-api/m-p/2331#M193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Paul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Yes, tech support is your next step.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2020 13:03:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-result-graphic-following-search-arcgis-api/m-p/2331#M193</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2020-07-30T13:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Result Graphic following Search - ArcGIS API for JS v4.16</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-result-graphic-following-search-arcgis-api/m-p/2332#M194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After speaking with tech support, we've found a solution for my issue. The result object is still added to the map, but I changed the opacity for the fill and the outline to be completely transparent. The highlightOptions within the MapView took care of the issue:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;myView &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;MapView&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
        container&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"map_canvas"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
        map&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; myMap&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
        center&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; mapCenter&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;  &lt;SPAN class="comment token"&gt;//Center map on downtown Detroit&lt;/SPAN&gt;
        zoom&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; zoomLevel&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
        &lt;SPAN class="comment token"&gt;//Exclude the zoom widget from the UI&lt;/SPAN&gt;
        ui&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
          components&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"attribution"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
        &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
        constraints&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
          rotationEnabled&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;false&lt;/SPAN&gt;
        &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
        &lt;SPAN class="comment token"&gt;//Highlight options to hide Search result from map&lt;/SPAN&gt;
        highlightOptions&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
            color&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0.0&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
            fillOpacity&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0.0&lt;/SPAN&gt;
        &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
    &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:06:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-result-graphic-following-search-arcgis-api/m-p/2332#M194</guid>
      <dc:creator>PaulMcCord</dc:creator>
      <dc:date>2021-12-10T20:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Result Graphic following Search - ArcGIS API for JS v4.16</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-result-graphic-following-search-arcgis-api/m-p/1182011#M77659</link>
      <description>&lt;P&gt;I came across this post because I am trying to determine how to remove the highlight that the Search widget will create when you search a record in a layer.&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;This looks to also be the problem above. The &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#search" target="_self"&gt;search method&lt;/A&gt; on the Search widget creates a &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-FeatureLayerView.html#highlight" target="_self"&gt;highlight&lt;/A&gt; on the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-FeatureLayerView.html" target="_self"&gt;FeatureLayerView&lt;/A&gt;. Its not a graphic. The core problem is to remove a highlight you need a reference to the handle it returns when you query a layerView. However the API is unclear about how we're going to get a &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Handles.html#Handle" target="_self"&gt;handle&lt;/A&gt; on it as the search method returns a &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#SearchResponse" target="_self"&gt;SearchResponse&lt;/A&gt;&amp;nbsp;&amp;nbsp;which contains results with an array of &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#SearchResult" target="_self"&gt;SearchResult&lt;/A&gt; objects. None of that seems like what we need.&lt;/P&gt;&lt;P&gt;The answer provided by ESRI support is to make highlights for all layers in a map styled as transparent so that they are invisible? This is a pretty hacky solution. In my apps I use the hightlight functionality so that doesn't work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm hoping someone can pipe in with a better solution to this problem.&lt;BR /&gt;&lt;BR /&gt;[update 2022-06-21: the 'clear()' method on the searchWidget, among other things will remove a highlight from a selected search record. Although I had interest in more fine grained control; remove highlight/keep selection, this is what worked for me]&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2022 18:57:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-result-graphic-following-search-arcgis-api/m-p/1182011#M77659</guid>
      <dc:creator>RyanSutcliffe</dc:creator>
      <dc:date>2022-06-21T18:57:38Z</dc:date>
    </item>
  </channel>
</rss>

