<?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: Dynamic CIM Symbol in FeatureLayer in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dynamic-cim-symbol-in-featurelayer/m-p/1284101#M81007</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/678716"&gt;@KeremDenizmen&lt;/a&gt;&amp;nbsp;- have you considered using &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-UniqueValueRenderer.html" target="_self"&gt;UniqueValueRenderer&lt;/A&gt;? This will allow you to symbolize your features based on categorical attributes. You could use a different CIMSymbol for each category, for example.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It also sounds like you might want to create a FeatureLayer from client-side features - I'd recommend checking out the documentation on creating a FeatureLayer here (specifically look at the section called "Add an array of client-side features"):&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#creating-a-featurelayer" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#creating-a-featurelayer&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 28 Apr 2023 21:39:08 GMT</pubDate>
    <dc:creator>AnneFitz</dc:creator>
    <dc:date>2023-04-28T21:39:08Z</dc:date>
    <item>
      <title>Dynamic CIM Symbol in FeatureLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dynamic-cim-symbol-in-featurelayer/m-p/1283727#M80995</link>
      <description>&lt;P&gt;I want to show different types of CimSymbol (images) in a FeatureLayer (&amp;nbsp;because i want to cluster them.)&amp;nbsp; based on the source data i receive from my back-end. How can i achieve this ?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const layer = new FeatureLayer({
            renderer: {
              type: "simple",
              symbol: {
                type: "cim",
                data: {} // dynamic data based on data in source
              },
            },
            title: "Orders",
            objectIdField: "ObjectID",
            source: [] // dynamic data with orders with different types of location
          });&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2023 08:14:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dynamic-cim-symbol-in-featurelayer/m-p/1283727#M80995</guid>
      <dc:creator>KeremDenizmen</dc:creator>
      <dc:date>2023-04-28T08:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic CIM Symbol in FeatureLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dynamic-cim-symbol-in-featurelayer/m-p/1284101#M81007</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/678716"&gt;@KeremDenizmen&lt;/a&gt;&amp;nbsp;- have you considered using &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-UniqueValueRenderer.html" target="_self"&gt;UniqueValueRenderer&lt;/A&gt;? This will allow you to symbolize your features based on categorical attributes. You could use a different CIMSymbol for each category, for example.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It also sounds like you might want to create a FeatureLayer from client-side features - I'd recommend checking out the documentation on creating a FeatureLayer here (specifically look at the section called "Add an array of client-side features"):&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#creating-a-featurelayer" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#creating-a-featurelayer&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2023 21:39:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dynamic-cim-symbol-in-featurelayer/m-p/1284101#M81007</guid>
      <dc:creator>AnneFitz</dc:creator>
      <dc:date>2023-04-28T21:39:08Z</dc:date>
    </item>
  </channel>
</rss>

