<?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: Clear Search Widget Selection in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/clear-search-widget-selection/m-p/1211623#M78673</link>
    <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Hope I did not misunderstand you request. Sounds like you want to zoom to the search location and show the popup but does not want to the point graphic at the location. If this is what you want to you can just the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#resultGraphicEnabled" target="_self"&gt;Search.resultGraphicEnabled&lt;/A&gt; to false in the widget's constructor.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const searchWidget = new Search({
  view: view,
  resultGraphicEnabled: false
});&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 12 Sep 2022 15:16:14 GMT</pubDate>
    <dc:creator>UndralBatsukh</dc:creator>
    <dc:date>2022-09-12T15:16:14Z</dc:date>
    <item>
      <title>Clear Search Widget Selection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/clear-search-widget-selection/m-p/1211402#M78662</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I'm using the Search widget in a webmap (JS 4.24) and I want the results to either not be selected or to automatically get unselected (somehow) soon after the search is completed.&lt;/P&gt;&lt;P&gt;I do want the map pan/zoom (to the chosen search item) and I want the pop-up. I just don't want the feature to be selected and to remain selected.&lt;/P&gt;&lt;P&gt;By default, the only way to un-select the chosen feature appears to be returning to the Search widget to clear the search bar.&lt;/P&gt;&lt;P&gt;Is there a way to just zoom/pop-up (and not select)?&lt;BR /&gt;Or to clear the selection?&lt;BR /&gt;Or to clear the Search bar automatically? (collapsing the widget doesn't do it).&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;~stefan (JS rookie)&lt;/P&gt;</description>
      <pubDate>Sun, 11 Sep 2022 02:00:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/clear-search-widget-selection/m-p/1211402#M78662</guid>
      <dc:creator>StefanFreelan</dc:creator>
      <dc:date>2022-09-11T02:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: Clear Search Widget Selection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/clear-search-widget-selection/m-p/1211623#M78673</link>
      <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Hope I did not misunderstand you request. Sounds like you want to zoom to the search location and show the popup but does not want to the point graphic at the location. If this is what you want to you can just the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#resultGraphicEnabled" target="_self"&gt;Search.resultGraphicEnabled&lt;/A&gt; to false in the widget's constructor.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const searchWidget = new Search({
  view: view,
  resultGraphicEnabled: false
});&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 12 Sep 2022 15:16:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/clear-search-widget-selection/m-p/1211623#M78673</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2022-09-12T15:16:14Z</dc:date>
    </item>
  </channel>
</rss>

