<?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: how to clear one by one selected feature from map layers in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-clear-one-by-one-selected-feature-from-map/m-p/1023382#M71628</link>
    <description>&lt;P&gt;I worked through that solution I posted above in a codepen, but instead of using the right mouse button to deselect, you hold down the cntrol key. Maybe it can help you,&amp;nbsp; &lt;A href="https://codepen.io/static_K/pen/bGBdLzE?editors=1111" target="_self"&gt;deselct with ctrl+mouseclick&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 04 Feb 2021 14:02:53 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2021-02-04T14:02:53Z</dc:date>
    <item>
      <title>how to clear one by one selected feature from map layers</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-clear-one-by-one-selected-feature-from-map/m-p/1022479#M71587</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Im able to select the features in the map using multi selection widget, But how I can show the selected features and how can I give access to user to deselect/remove particular feature.&lt;/P&gt;&lt;P&gt;ex: user by mistake selected 4 features instead of 3,&amp;nbsp; later he wants to clear/remove the one feature from the list and can save only desired 3 features in map&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2021 08:08:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-clear-one-by-one-selected-feature-from-map/m-p/1022479#M71587</guid>
      <dc:creator>gorusivakumar</dc:creator>
      <dc:date>2021-02-02T08:08:36Z</dc:date>
    </item>
    <item>
      <title>Re: how to clear one by one selected feature from map layers</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-clear-one-by-one-selected-feature-from-map/m-p/1022498#M71589</link>
      <description>&lt;P&gt;I don't know if this will help because I don't know what your code looks like, but I think you can use the remove() method on the highlight.&amp;nbsp; Check if the feature being clicked on is already highlighted and remove it if it is.&lt;/P&gt;&lt;P&gt;Take a look at the solution posted &lt;A href="https://community.esri.com/t5/arcgis-api-for-javascript/select-multiple-features-by-mouse-clicks/m-p/588561#M55001" target="_self"&gt;here&lt;/A&gt;, which looks like it uses a combination of ctrl key and mouse clicks to deselect.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Edit: looks like its a little more complicated now that I brought that solution into codepen.&amp;nbsp; I think the logic under it would be to get the current selection, check if it is in the array of selected features and if it is, pop it out.&amp;nbsp; The couple examples I've found and tried either remove all, or select only one item and deselects the previous.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2021 13:25:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-clear-one-by-one-selected-feature-from-map/m-p/1022498#M71589</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-02-02T13:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: how to clear one by one selected feature from map layers</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-clear-one-by-one-selected-feature-from-map/m-p/1023382#M71628</link>
      <description>&lt;P&gt;I worked through that solution I posted above in a codepen, but instead of using the right mouse button to deselect, you hold down the cntrol key. Maybe it can help you,&amp;nbsp; &lt;A href="https://codepen.io/static_K/pen/bGBdLzE?editors=1111" target="_self"&gt;deselct with ctrl+mouseclick&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2021 14:02:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-clear-one-by-one-selected-feature-from-map/m-p/1023382#M71628</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-02-04T14:02:53Z</dc:date>
    </item>
  </channel>
</rss>

