<?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 ESRI Cluster layer dynamic label colors in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-cluster-layer-dynamic-label-colors/m-p/388389#M35839</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: 1em; color: #222426; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;I am using extras/clusterlayer to render clusters for a uniquevalue renderer.. all that works well and good except that the label colors are all white/black/whatever you set them to..&lt;/P&gt;&lt;P style="margin-bottom: 1em; color: #222426; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;I though I'd just loop through the cluster layer object and change the label colors on a per graphic basis based on the color it got from the renderer.. This does not work. All label change color even if you specifically change one graphic&lt;I&gt;. The loop is working and it seems to swap the colors properly but in the end the last color applied to the label has been propagated through all the graphics..&lt;/I&gt;&lt;/P&gt;&lt;P style="margin-bottom: 1em; color: #222426; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;the little test loop below should alternate white and black labels for each cluster.. It doesn't, the best i can get it to do is change all the labels from black to white and back again.&lt;/P&gt;&lt;P style="margin-bottom: 1em; color: #222426; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;&lt;/P&gt;&lt;P style="margin-bottom: 1em; color: #222426; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;&lt;CODE style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif;"&gt;&lt;SPAN class="pln" style="color: black;"&gt;&amp;nbsp; clusterLayer&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;setRenderer&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;UniRenderer&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;var&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; graphics &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; clusterLayer&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;graphics&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;&lt;BR /&gt;&amp;nbsp; console&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;log&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;graphics&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;length&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;for&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;var&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; i&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="lit" style="color: maroon;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; i&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;graphics&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;length&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;i&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;++)&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;{&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;if&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;i&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;%&lt;/SPAN&gt;&lt;SPAN class="lit" style="color: maroon;"&gt;2&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;==&lt;/SPAN&gt;&lt;SPAN class="lit" style="color: maroon;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;{&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;&lt;BR /&gt;&amp;nbsp; console&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;log&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="str" style="color: maroon;"&gt;"black"&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="com" style="color: gray;"&gt;//have also tried clusterLayer.graphics&lt;I&gt;._graphicsLayer.clusterLabelColor&lt;/I&gt;&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;&lt;BR /&gt;&amp;nbsp; clusterLayer&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;graphics&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;[&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;i&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;].&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;_layer&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;_clusterLabelColor&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="str" style="color: maroon;"&gt;"#000"&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;}&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;else&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;{&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;&lt;BR /&gt;&amp;nbsp; console&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;log&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="str" style="color: maroon;"&gt;"white"&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;&lt;BR /&gt;&amp;nbsp; clusterLayer&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;graphics&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;[&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;i&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;].&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;_layer&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;_clusterLabelColor&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="str" style="color: maroon;"&gt;"#FFF"&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;}&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="com" style="color: gray;"&gt;//console.log(label);&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="com" style="color: gray;"&gt;//label = "#000";&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;}&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;&lt;BR /&gt;&amp;nbsp; console&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;log&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;clusterLayer&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;var&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; symbolList &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; clusterLayer&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;renderer&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;_symbols&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Mar 2016 14:47:07 GMT</pubDate>
    <dc:creator>AnthonyTimpson2</dc:creator>
    <dc:date>2016-03-10T14:47:07Z</dc:date>
    <item>
      <title>ESRI Cluster layer dynamic label colors</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-cluster-layer-dynamic-label-colors/m-p/388389#M35839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: 1em; color: #222426; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;I am using extras/clusterlayer to render clusters for a uniquevalue renderer.. all that works well and good except that the label colors are all white/black/whatever you set them to..&lt;/P&gt;&lt;P style="margin-bottom: 1em; color: #222426; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;I though I'd just loop through the cluster layer object and change the label colors on a per graphic basis based on the color it got from the renderer.. This does not work. All label change color even if you specifically change one graphic&lt;I&gt;. The loop is working and it seems to swap the colors properly but in the end the last color applied to the label has been propagated through all the graphics..&lt;/I&gt;&lt;/P&gt;&lt;P style="margin-bottom: 1em; color: #222426; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;the little test loop below should alternate white and black labels for each cluster.. It doesn't, the best i can get it to do is change all the labels from black to white and back again.&lt;/P&gt;&lt;P style="margin-bottom: 1em; color: #222426; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;&lt;/P&gt;&lt;P style="margin-bottom: 1em; color: #222426; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;&lt;CODE style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif;"&gt;&lt;SPAN class="pln" style="color: black;"&gt;&amp;nbsp; clusterLayer&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;setRenderer&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;UniRenderer&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;var&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; graphics &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; clusterLayer&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;graphics&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;&lt;BR /&gt;&amp;nbsp; console&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;log&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;graphics&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;length&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;for&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;var&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; i&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="lit" style="color: maroon;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; i&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;graphics&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;length&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;i&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;++)&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;{&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;if&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;i&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;%&lt;/SPAN&gt;&lt;SPAN class="lit" style="color: maroon;"&gt;2&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;==&lt;/SPAN&gt;&lt;SPAN class="lit" style="color: maroon;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;{&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;&lt;BR /&gt;&amp;nbsp; console&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;log&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="str" style="color: maroon;"&gt;"black"&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="com" style="color: gray;"&gt;//have also tried clusterLayer.graphics&lt;I&gt;._graphicsLayer.clusterLabelColor&lt;/I&gt;&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;&lt;BR /&gt;&amp;nbsp; clusterLayer&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;graphics&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;[&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;i&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;].&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;_layer&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;_clusterLabelColor&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="str" style="color: maroon;"&gt;"#000"&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;}&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;else&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;{&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;&lt;BR /&gt;&amp;nbsp; console&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;log&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="str" style="color: maroon;"&gt;"white"&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;&lt;BR /&gt;&amp;nbsp; clusterLayer&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;graphics&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;[&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;i&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;].&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;_layer&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;_clusterLabelColor&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="str" style="color: maroon;"&gt;"#FFF"&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;}&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="com" style="color: gray;"&gt;//console.log(label);&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="com" style="color: gray;"&gt;//label = "#000";&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;}&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;&lt;BR /&gt;&amp;nbsp; console&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;log&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;clusterLayer&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;var&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; symbolList &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; clusterLayer&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;renderer&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;_symbols&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2016 14:47:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-cluster-layer-dynamic-label-colors/m-p/388389#M35839</guid>
      <dc:creator>AnthonyTimpson2</dc:creator>
      <dc:date>2016-03-10T14:47:07Z</dc:date>
    </item>
  </channel>
</rss>

