<?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: Is it possible to change color of each icon in Feature Layer? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-change-color-of-each-icon-in/m-p/1020023#M71499</link>
    <description>&lt;P&gt;A link for your convenience&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-UniqueValueRenderer.html" target="_blank"&gt;UniqueValueRenderer | ArcGIS API for JavaScript 4.18&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 26 Jan 2021 14:10:17 GMT</pubDate>
    <dc:creator>BlakeTerhune</dc:creator>
    <dc:date>2021-01-26T14:10:17Z</dc:date>
    <item>
      <title>Is it possible to change color of each icon in Feature Layer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-change-color-of-each-icon-in/m-p/1019945#M71494</link>
      <description>&lt;P&gt;I am using ArcGIS Javascript 4.17&lt;/P&gt;&lt;P&gt;I have a feature layer like this&lt;/P&gt;&lt;P&gt;var testlayer = new FeatureLayer({&lt;BR /&gt;url: "{Some url here}",&lt;BR /&gt;outFields: ["*"], // Return all fields so it can be queried client-side&lt;BR /&gt;title: "my test layer"&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;This is a sample output:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CastielMye_0-1611648561172.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/4541iC173FE6B4FA6B7CD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CastielMye_0-1611648561172.png" alt="CastielMye_0-1611648561172.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to change the color of each section (the icons inside red circle) to a different color on the fly with just one layer?&lt;/P&gt;&lt;P&gt;So for example this is my desired output color per section (one section is colored blue, one section is colored black, one section is colored green). Currently what I can think of is clone the feature layer then query then pass the data and create multiple feature layers per section with my desired color. But is there any other way to do this within just a single layer?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CastielMye_1-1611648731393.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/4542iD32ACD0F63B7B568/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CastielMye_1-1611648731393.png" alt="CastielMye_1-1611648731393.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 08:14:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-change-color-of-each-icon-in/m-p/1019945#M71494</guid>
      <dc:creator>CastielMye</dc:creator>
      <dc:date>2021-01-26T08:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to change color of each icon in Feature Layer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-change-color-of-each-icon-in/m-p/1020000#M71497</link>
      <description>&lt;P&gt;If the data has unique field values for the areas you want to color differently, you can use a unique values renderer.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 13:03:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-change-color-of-each-icon-in/m-p/1020000#M71497</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-01-26T13:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to change color of each icon in Feature Layer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-change-color-of-each-icon-in/m-p/1020023#M71499</link>
      <description>&lt;P&gt;A link for your convenience&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-UniqueValueRenderer.html" target="_blank"&gt;UniqueValueRenderer | ArcGIS API for JavaScript 4.18&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 14:10:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-change-color-of-each-icon-in/m-p/1020023#M71499</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2021-01-26T14:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to change color of each icon in Feature Layer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-change-color-of-each-icon-in/m-p/1020184#M71505</link>
      <description>&lt;P&gt;Hi, you could use Arcade to do this if you're sketching geometries. Here's a codepen showing how to encode the sketched geometries into an Arcade expression. You then use a UniqueValueRenderer to style the intersecting features how you want.&amp;nbsp;&amp;nbsp;&lt;A href="https://codepen.io/kekenes/pen/GRjVvJL" target="_blank"&gt;https://codepen.io/kekenes/pen/GRjVvJL&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KristianEkenes_0-1611688125478.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/4591i5010D80056B79E09/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KristianEkenes_0-1611688125478.png" alt="KristianEkenes_0-1611688125478.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 19:08:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-change-color-of-each-icon-in/m-p/1020184#M71505</guid>
      <dc:creator>KristianEkenes</dc:creator>
      <dc:date>2021-01-26T19:08:58Z</dc:date>
    </item>
  </channel>
</rss>

