<?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: Transparency based on a field attributes in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/transparency-based-on-a-field-attributes/m-p/365792#M33921</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Pretty sure this kind of dynamic transparency isn't supported. You either have transparency for all features in the layer or not. The only hack-ish way I can think of to do this would be something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt;At load time, get all your point features and determine how many features would go into 10%, 20%, etc groupings.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Sorting your list of features by FeatureID (surrogate for feature "age"), divvy up the features into several different new arrays of features&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Now create new featureLayers for each individual array of features and then apply your graduating transparencey to each&lt;/LI&gt;&lt;BR /&gt;&lt;/OL&gt;&lt;BR /&gt;&lt;SPAN&gt;FeatureLayer1 (80% transparency)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;FeatureLayer2 (60% transparency)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;FeatureLayer3 (40% transparency)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;FeatureLayer4 (20% transparency)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;FeatureLayer5 (0% transparency)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hopefully you don't need to edit the features. Ugly, ugly, ugly.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 May 2013 14:20:44 GMT</pubDate>
    <dc:creator>SteveCole</dc:creator>
    <dc:date>2013-05-07T14:20:44Z</dc:date>
    <item>
      <title>Transparency based on a field attributes</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/transparency-based-on-a-field-attributes/m-p/365791#M33920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Not sure I can add more to the title &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Anyone know how I can, either at the ArcMap/Server side on at runtime JSAPI side set transparency of a point layer based on the attribute in a field - the aim is more recent events to have a more solid setting?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ACM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 May 2013 10:07:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/transparency-based-on-a-field-attributes/m-p/365791#M33920</guid>
      <dc:creator>AdrianMarsden</dc:creator>
      <dc:date>2013-05-07T10:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: Transparency based on a field attributes</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/transparency-based-on-a-field-attributes/m-p/365792#M33921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Pretty sure this kind of dynamic transparency isn't supported. You either have transparency for all features in the layer or not. The only hack-ish way I can think of to do this would be something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt;At load time, get all your point features and determine how many features would go into 10%, 20%, etc groupings.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Sorting your list of features by FeatureID (surrogate for feature "age"), divvy up the features into several different new arrays of features&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Now create new featureLayers for each individual array of features and then apply your graduating transparencey to each&lt;/LI&gt;&lt;BR /&gt;&lt;/OL&gt;&lt;BR /&gt;&lt;SPAN&gt;FeatureLayer1 (80% transparency)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;FeatureLayer2 (60% transparency)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;FeatureLayer3 (40% transparency)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;FeatureLayer4 (20% transparency)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;FeatureLayer5 (0% transparency)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hopefully you don't need to edit the features. Ugly, ugly, ugly.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 May 2013 14:20:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/transparency-based-on-a-field-attributes/m-p/365792#M33921</guid>
      <dc:creator>SteveCole</dc:creator>
      <dc:date>2013-05-07T14:20:44Z</dc:date>
    </item>
    <item>
      <title>Re: Transparency based on a field attributes</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/transparency-based-on-a-field-attributes/m-p/365793#M33922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;:DI think that is more or less what my colleague is going to do.&amp;nbsp; Thanks anyway.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ACM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 May 2013 14:39:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/transparency-based-on-a-field-attributes/m-p/365793#M33922</guid>
      <dc:creator>AdrianMarsden</dc:creator>
      <dc:date>2013-05-07T14:39:09Z</dc:date>
    </item>
  </channel>
</rss>

