<?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: how to retain layer original symbol if single feature else create cluster symbol in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-retain-layer-original-symbol-if-single/m-p/1155603#M76719</link>
    <description>&lt;P&gt;Is that what you want?&amp;nbsp;&lt;A href="https://codepen.io/xiej/pen/oNpLyJY" target="_blank"&gt;https://codepen.io/xiej/pen/oNpLyJY&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 21 Mar 2022 08:23:49 GMT</pubDate>
    <dc:creator>Lerman</dc:creator>
    <dc:date>2022-03-21T08:23:49Z</dc:date>
    <item>
      <title>how to retain layer original symbol if single feature else create cluster symbol</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-retain-layer-original-symbol-if-single/m-p/1151584#M76588</link>
      <description>&lt;P&gt;Hello Team,&lt;/P&gt;&lt;P&gt;I have a simple picture marker symbol feature layer.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Requirement&lt;/STRONG&gt; - When we turn ON cluster for that layer if single feature, then it should display layer original picture marker symbol and if more than 2 features, then it should display cluster symbol (simple marker symbol) with labels. When we turn OFF cluster, then layer will display as its initial state i.e. only picture marker symbols&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2022 14:05:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-retain-layer-original-symbol-if-single/m-p/1151584#M76588</guid>
      <dc:creator>ShefaliMantri</dc:creator>
      <dc:date>2022-03-08T14:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: how to retain layer original symbol if single feature else create cluster symbol</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-retain-layer-original-symbol-if-single/m-p/1151664#M76592</link>
      <description>&lt;P&gt;Also interested in knowing if this is possible.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2022 12:30:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-retain-layer-original-symbol-if-single/m-p/1151664#M76592</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2022-03-08T12:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: how to retain layer original symbol if single feature else create cluster symbol</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-retain-layer-original-symbol-if-single/m-p/1151836#M76601</link>
      <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use the layer' &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#queryFeatureCount" target="_self"&gt;queryFeatureCount&lt;/A&gt; method to get the count of features in the service/layer. Then you apply Clustering or remove the clustering and apply the original renderer based on the count returned from the method.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a simple test app showcases how this can be done. But please note that it is a contrived app:&amp;nbsp;&lt;A href="https://codepen.io/U_B_U/pen/yLPWEgZ?editors=1000" target="_blank"&gt;https://codepen.io/U_B_U/pen/yLPWEgZ?editors=1000&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2022 18:10:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-retain-layer-original-symbol-if-single/m-p/1151836#M76601</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2022-03-08T18:10:16Z</dc:date>
    </item>
    <item>
      <title>Re: how to retain layer original symbol if single feature else create cluster symbol</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-retain-layer-original-symbol-if-single/m-p/1152019#M76606</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/53756"&gt;@UndralBatsukh&lt;/a&gt;&amp;nbsp;for responding.&lt;/P&gt;&lt;P&gt;Requirement is when a cluster is ON and on the map some feature is single, some are not. When single feature on the map, then it shows layer original symbol, i.e. picture marker and club features shown as cluster simple circle with labels.&lt;/P&gt;&lt;P&gt;So at same time both picture and simple marker symbols will present on map for same layer.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2022 05:00:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-retain-layer-original-symbol-if-single/m-p/1152019#M76606</guid>
      <dc:creator>ShefaliMantri</dc:creator>
      <dc:date>2022-03-09T05:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: how to retain layer original symbol if single feature else create cluster symbol</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-retain-layer-original-symbol-if-single/m-p/1152372#M76614</link>
      <description>&lt;P&gt;Oh doh! Completely missed the point. &amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Sorry about that.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;This is not possible currently. We do have plans to support this scenario. I will update you once we add support for this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Undral&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2022 22:11:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-retain-layer-original-symbol-if-single/m-p/1152372#M76614</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2022-03-09T22:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: how to retain layer original symbol if single feature else create cluster symbol</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-retain-layer-original-symbol-if-single/m-p/1152569#M76619</link>
      <description>&lt;P&gt;Ok&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/53756"&gt;@UndralBatsukh&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 13:42:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-retain-layer-original-symbol-if-single/m-p/1152569#M76619</guid>
      <dc:creator>ShefaliMantri</dc:creator>
      <dc:date>2022-03-10T13:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: how to retain layer original symbol if single feature else create cluster symbol</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-retain-layer-original-symbol-if-single/m-p/1155603#M76719</link>
      <description>&lt;P&gt;Is that what you want?&amp;nbsp;&lt;A href="https://codepen.io/xiej/pen/oNpLyJY" target="_blank"&gt;https://codepen.io/xiej/pen/oNpLyJY&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2022 08:23:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-retain-layer-original-symbol-if-single/m-p/1155603#M76719</guid>
      <dc:creator>Lerman</dc:creator>
      <dc:date>2022-03-21T08:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: how to retain layer original symbol if single feature else create cluster symbol</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-retain-layer-original-symbol-if-single/m-p/1155637#M76722</link>
      <description>&lt;P&gt;Yes&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/414585"&gt;@Lerman&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2022 10:42:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-retain-layer-original-symbol-if-single/m-p/1155637#M76722</guid>
      <dc:creator>ShefaliMantri</dc:creator>
      <dc:date>2022-03-21T10:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to retain layer original symbol if single feature else create cluster symbol</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-retain-layer-original-symbol-if-single/m-p/1155646#M76723</link>
      <description>&lt;P&gt;Can you please explain how you did this in words as this is the behavior I am also looking for with clustering when using a unique value renderer?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2022 10:56:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-retain-layer-original-symbol-if-single/m-p/1155646#M76723</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2022-03-21T10:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: how to retain layer original symbol if single feature else create cluster symbol</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-retain-layer-original-symbol-if-single/m-p/1155678#M76724</link>
      <description>&lt;P&gt;In my project we have simple renderer feature layers and a toggle button to turn ON/OFF cluster. When cluster is ON, I replaced layer simple renderer to class break renderer as shown in&amp;nbsp;&lt;A href="https://codepen.io/xiej/pen/oNpLyJY" target="_blank" rel="nofollow noopener noreferrer"&gt;https://codepen.io/xiej/pen/oNpLyJY&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2022 13:34:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-retain-layer-original-symbol-if-single/m-p/1155678#M76724</guid>
      <dc:creator>ShefaliMantri</dc:creator>
      <dc:date>2022-03-21T13:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: how to retain layer original symbol if single feature else create cluster symbol</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-retain-layer-original-symbol-if-single/m-p/1156550#M76749</link>
      <description>&lt;P&gt;Sorry for the late reply. I found that when a cluster is ON , this layer generates a new field cluster_count which can be used in the renderer. I think it works for unique value renderer as well.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2022 09:31:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-retain-layer-original-symbol-if-single/m-p/1156550#M76749</guid>
      <dc:creator>Lerman</dc:creator>
      <dc:date>2022-03-23T09:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: how to retain layer original symbol if single feature else create cluster symbol</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-retain-layer-original-symbol-if-single/m-p/1157658#M76778</link>
      <description>&lt;P&gt;As an additional note,&amp;nbsp;when a clustered layer contains a UniqueValueRenderer, the clustered graphics are rendered with the symbol of the most common, or predominant, value of the uniqueValueInfos of the features represented by the cluster.&lt;BR /&gt;There is no such interface setting if you want to make the clustered graphics use the same symbol. It is difficult to implement this requirement as the cluster_count field cannot be used for arcade expressions and layers with a UniqueValueRenderer may not contain multiple fields when cluster is enabled. I have tested this and can only use two layers, one showing the graphics before cluster and one showing the graphics after cluster. demo:&amp;nbsp;&lt;A href="https://codepen.io/xiej/pen/LYexXNY?editors=0010" target="_blank"&gt;https://codepen.io/xiej/pen/LYexXNY?editors=0010&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Mar 2022 03:05:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-retain-layer-original-symbol-if-single/m-p/1157658#M76778</guid>
      <dc:creator>Lerman</dc:creator>
      <dc:date>2022-03-25T03:05:46Z</dc:date>
    </item>
  </channel>
</rss>

