<?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 Remove highlight from all layer in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-highlight-from-all-layer/m-p/513255#M47905</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone point me how to remove highlight from all features on map? I have several layers (5 layers) and i want to remove highlight at once from all them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Feb 2020 11:57:29 GMT</pubDate>
    <dc:creator>Vakhtang_Zubiashvili</dc:creator>
    <dc:date>2020-02-03T11:57:29Z</dc:date>
    <item>
      <title>Remove highlight from all layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-highlight-from-all-layer/m-p/513255#M47905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone point me how to remove highlight from all features on map? I have several layers (5 layers) and i want to remove highlight at once from all them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Feb 2020 11:57:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-highlight-from-all-layer/m-p/513255#M47905</guid>
      <dc:creator>Vakhtang_Zubiashvili</dc:creator>
      <dc:date>2020-02-03T11:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: Remove highlight from all layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-highlight-from-all-layer/m-p/513256#M47906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/83159" target="_blank"&gt;vakhtang zubiashvili&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 j-img-floatend jive-image" src="https://community.esri.com/legacyfs/online/480174_pastedImage_2.png" style="float: right;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which version of the JavaScript API are you using, 3.x or 4.x?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can provide you with a little example (using 4.13) where a parcel is highlighted when clicked and 'unhighlighted' when the popup is closed:&amp;nbsp;&lt;A class="link-titled" href="https://twiav.nl/cursus/arcgis/javascript/cursus_arcgis_javascript_dkk_geocoder.htm" title="https://twiav.nl/cursus/arcgis/javascript/cursus_arcgis_javascript_dkk_geocoder.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;Aan de slag met ArcGIS JavaScript - DKK Geocoder&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The relevant piece of code is shown below. But, as you can see from my notes, it was not me who figured this out. No it was &lt;A href="https://community.esri.com/migrated-users/3101" target="_blank"&gt;Robert Scheitlin, GISP&lt;/A&gt;‌...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this example useful to you?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Egge-Jan&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;// Make sure the clicked parcel is highlighted -  code sample provided by Robert Scheitlin, GISP on GeoNet&lt;/SPAN&gt;
      view&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;popup&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;watch&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'selectedFeature'&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;gra&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
        &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;gra&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;graphics&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;removeAll&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="keyword token"&gt;let&lt;/SPAN&gt; h &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; view&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;highlightOptions&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
          gra&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;symbol &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
            type&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"simple-fill"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;// autocasts as new SimpleFillSymbol()&lt;/SPAN&gt;
            color&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;h&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;color&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;r&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;h&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;color&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;g&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; h&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;color&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;b&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; h&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;fillOpacity&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
            outline&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
              &lt;SPAN class="comment token"&gt;// autocasts as new SimpleLineSymbol()&lt;/SPAN&gt;
              color&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;h&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;color&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;r&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;h&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;color&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;g&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; h&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;color&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;b&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; h&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;color&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;a&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
              width&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1&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;
          view&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;graphics&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;add&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;gra&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="keyword token"&gt;else&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
          view&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;graphics&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;removeAll&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="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;popup&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;watch&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'visible'&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;vis&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&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="operator token"&gt;!&lt;/SPAN&gt;vis&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;graphics&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;removeAll&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="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;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 22:26:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-highlight-from-all-layer/m-p/513256#M47906</guid>
      <dc:creator>Egge-Jan_Pollé</dc:creator>
      <dc:date>2021-12-11T22:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: Remove highlight from all layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-highlight-from-all-layer/m-p/513257#M47907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Egge-Jan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use 4.14 version,&lt;/P&gt;&lt;P&gt;i tried view.graphics.removeAll(),&lt;/P&gt;&lt;P&gt;but it didn't work. It removes for one layer, but when i try to use it for&lt;/P&gt;&lt;P&gt;muktuple it doesn't work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Feb 2020 16:09:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-highlight-from-all-layer/m-p/513257#M47907</guid>
      <dc:creator>Vakhtang_Zubiashvili</dc:creator>
      <dc:date>2020-02-03T16:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: Remove highlight from all layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-highlight-from-all-layer/m-p/513258#M47908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/83159"&gt;vakhtang zubiashvili&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you show us a sample of your code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Egge-Jan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Feb 2020 16:19:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-highlight-from-all-layer/m-p/513258#M47908</guid>
      <dc:creator>Egge-Jan_Pollé</dc:creator>
      <dc:date>2020-02-03T16:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: Remove highlight from all layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-highlight-from-all-layer/m-p/513259#M47909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This&amp;nbsp;&lt;A href="https://codepen.io/U_B_U/pen/ExaqJGv?editors=1000"&gt;test app&lt;/A&gt;&amp;nbsp;shows how to remove&amp;nbsp;highlights from several layersviews at a time.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;-Undral&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Feb 2020 19:11:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-highlight-from-all-layer/m-p/513259#M47909</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2020-02-03T19:11:54Z</dc:date>
    </item>
    <item>
      <title>Re: Remove highlight from all layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-highlight-from-all-layer/m-p/1016279#M71370</link>
      <description>&lt;P&gt;Thanks for the nudge in the right direction. I didn’t think about the fact that the highlight method is returning a value that I can use. On to the next ArcGIS problem.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2021 07:43:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-highlight-from-all-layer/m-p/1016279#M71370</guid>
      <dc:creator>KaiFriis</dc:creator>
      <dc:date>2021-01-13T07:43:06Z</dc:date>
    </item>
  </channel>
</rss>

