<?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 cluster color change in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cluster-color-change/m-p/1388814#M83801</link>
    <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to change cluster color on&amp;nbsp;unique-value renderer,&lt;/P&gt;&lt;P&gt;I was trying to figure it out but with no success.&lt;/P&gt;&lt;P&gt;here is what i have try to do:&lt;/P&gt;&lt;P&gt;var&amp;nbsp; featureReduction = some custom feature reduction that works very good.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;after that i added this for change cluster color based on feature status&lt;/P&gt;&lt;P&gt;const clusterRenderer = new EsriSimpleRenderer({&lt;BR /&gt;symbol: {&lt;BR /&gt;type: 'simple-marker',&lt;BR /&gt;style: 'circle',&lt;BR /&gt;size: 10,&lt;BR /&gt;color: [255, 255, 255, 0.8],&lt;BR /&gt;outline: {&lt;BR /&gt;color: [155, 89, 182, 1],&lt;BR /&gt;size: 10,&lt;BR /&gt;width: 2&lt;BR /&gt;}&lt;BR /&gt;},&lt;BR /&gt;visualVariables: [&lt;BR /&gt;{&lt;BR /&gt;type: "color",&lt;BR /&gt;valueExpression:&lt;BR /&gt;`// $feature gives you access to feature attributes.&lt;BR /&gt;var status = Decode($feature.Status,&lt;BR /&gt;"Inactive", 0, "Malfunction", 1&lt;BR /&gt;);&lt;BR /&gt;&lt;BR /&gt;return status;`,&lt;BR /&gt;stops: [&lt;BR /&gt;{ value: 0, color: "white" },&lt;BR /&gt;{ value: 1, color: "red" }&lt;BR /&gt;]&lt;BR /&gt;}]&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;layer.FeaureReduction.rederer =&amp;nbsp;&amp;nbsp;clusterRenderer&amp;nbsp;&lt;/P&gt;&lt;P&gt;after adding this the cluster dose not working at all....&lt;/P&gt;&lt;P&gt;please advice&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 29 Feb 2024 14:32:51 GMT</pubDate>
    <dc:creator>EliyahoLevi</dc:creator>
    <dc:date>2024-02-29T14:32:51Z</dc:date>
    <item>
      <title>cluster color change</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cluster-color-change/m-p/1388814#M83801</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to change cluster color on&amp;nbsp;unique-value renderer,&lt;/P&gt;&lt;P&gt;I was trying to figure it out but with no success.&lt;/P&gt;&lt;P&gt;here is what i have try to do:&lt;/P&gt;&lt;P&gt;var&amp;nbsp; featureReduction = some custom feature reduction that works very good.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;after that i added this for change cluster color based on feature status&lt;/P&gt;&lt;P&gt;const clusterRenderer = new EsriSimpleRenderer({&lt;BR /&gt;symbol: {&lt;BR /&gt;type: 'simple-marker',&lt;BR /&gt;style: 'circle',&lt;BR /&gt;size: 10,&lt;BR /&gt;color: [255, 255, 255, 0.8],&lt;BR /&gt;outline: {&lt;BR /&gt;color: [155, 89, 182, 1],&lt;BR /&gt;size: 10,&lt;BR /&gt;width: 2&lt;BR /&gt;}&lt;BR /&gt;},&lt;BR /&gt;visualVariables: [&lt;BR /&gt;{&lt;BR /&gt;type: "color",&lt;BR /&gt;valueExpression:&lt;BR /&gt;`// $feature gives you access to feature attributes.&lt;BR /&gt;var status = Decode($feature.Status,&lt;BR /&gt;"Inactive", 0, "Malfunction", 1&lt;BR /&gt;);&lt;BR /&gt;&lt;BR /&gt;return status;`,&lt;BR /&gt;stops: [&lt;BR /&gt;{ value: 0, color: "white" },&lt;BR /&gt;{ value: 1, color: "red" }&lt;BR /&gt;]&lt;BR /&gt;}]&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;layer.FeaureReduction.rederer =&amp;nbsp;&amp;nbsp;clusterRenderer&amp;nbsp;&lt;/P&gt;&lt;P&gt;after adding this the cluster dose not working at all....&lt;/P&gt;&lt;P&gt;please advice&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Feb 2024 14:32:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cluster-color-change/m-p/1388814#M83801</guid>
      <dc:creator>EliyahoLevi</dc:creator>
      <dc:date>2024-02-29T14:32:51Z</dc:date>
    </item>
  </channel>
</rss>

