<?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: Override cluster symbol with UniqueValueRenderer in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/override-cluster-symbol-with-uniquevaluerenderer/m-p/1059643#M73194</link>
    <description>&lt;P&gt;Apparently there's an undocumented symbol property in FeatureReductionCluster -&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-api-for-javascript-ideas/arcgis-javascript-4-cluster-renderer/idc-p/1059638#M48" target="_blank" rel="noopener"&gt;https://community.esri.com/t5/arcgis-api-for-javascript-ideas/arcgis-javascript-4-cluster-renderer/idc-p/1059638#M48&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 19 May 2021 20:00:50 GMT</pubDate>
    <dc:creator>bmanghi</dc:creator>
    <dc:date>2021-05-19T20:00:50Z</dc:date>
    <item>
      <title>Override cluster symbol with UniqueValueRenderer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/override-cluster-symbol-with-uniquevaluerenderer/m-p/1037222#M72080</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My application displays multiple types of features with differing symbols using a feature layer with a unique value renderer, like so&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;  {
    type: 'unique-value',
    valueExpression: `When($feature.type == 'someType', '1', 
      $feature.type == 'someType', '2', 
      $feature.type == 'someType', '3', 
      '0')`,
    uniqueValueInfos: [{
        value: '1',
        symbol: someSymbol,
      },
      {
        value: '2',
        symbol: someSymbol,
      },
      {
        value: '3',
        symbol: someSymbol,    
      }
    ],
  }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This works very well, however upon adding a featureReductionCluster to the feature layer, the generated cluster symbols seem to be a random selection of of the features it represents, albeit a different size.&lt;/P&gt;&lt;P&gt;Removing the valueExpression and specifying defaultSymbol in the renderer gets around this, as the cluster symbol inherits the symbol/size from the default.&lt;/P&gt;&lt;P&gt;However due to the nature of my use case I am required to perform some advanced differentiation, requiring the use of valueExpression with an Arcade expression.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to retain the use of valueExpression on a renderer and still have control over the cluster symbol?&lt;/P&gt;</description>
      <pubDate>Tue, 16 Mar 2021 17:43:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/override-cluster-symbol-with-uniquevaluerenderer/m-p/1037222#M72080</guid>
      <dc:creator>mute55</dc:creator>
      <dc:date>2021-03-16T17:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: Override cluster symbol with UniqueValueRenderer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/override-cluster-symbol-with-uniquevaluerenderer/m-p/1059643#M73194</link>
      <description>&lt;P&gt;Apparently there's an undocumented symbol property in FeatureReductionCluster -&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-api-for-javascript-ideas/arcgis-javascript-4-cluster-renderer/idc-p/1059638#M48" target="_blank" rel="noopener"&gt;https://community.esri.com/t5/arcgis-api-for-javascript-ideas/arcgis-javascript-4-cluster-renderer/idc-p/1059638#M48&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 May 2021 20:00:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/override-cluster-symbol-with-uniquevaluerenderer/m-p/1059643#M73194</guid>
      <dc:creator>bmanghi</dc:creator>
      <dc:date>2021-05-19T20:00:50Z</dc:date>
    </item>
  </channel>
</rss>

