<?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: Picture Marker Symbol for clustering in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/picture-marker-symbol-for-clustering/m-p/1243652#M79727</link>
    <description>&lt;P&gt;I approached ESRI customer support and they told its possible. Once I have a sample code Iwill share in the forum soon&lt;/P&gt;</description>
    <pubDate>Sat, 24 Dec 2022 14:13:16 GMT</pubDate>
    <dc:creator>ADITYAKUMAR1</dc:creator>
    <dc:date>2022-12-24T14:13:16Z</dc:date>
    <item>
      <title>Picture Marker Symbol for clustering</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/picture-marker-symbol-for-clustering/m-p/1242738#M79687</link>
      <description>&lt;P&gt;HI ,&lt;/P&gt;&lt;P&gt;&amp;nbsp; I have a feature layer which has clustering data with it. To this layer I want to add picture marker symbol. This was working fine in Javaascript 3x but I want to do the same in 4x.&lt;/P&gt;&lt;P&gt;this.clusterLayer = new FeatureLayer({&lt;BR /&gt;supportsEditing: true,&lt;BR /&gt;supportsAdd: true,&lt;BR /&gt;title: "clusters",&lt;BR /&gt;objectIdField: "clusters",&lt;BR /&gt;id: "clusters",&lt;BR /&gt;source: [this.clustPoints],&lt;BR /&gt;geometryType: "point"&lt;BR /&gt;&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;var picBaseUrl = _globalGISUrl + "images/";&lt;BR /&gt;var clustermarker = new PictureMarkerSymbol(picBaseUrl + "GreenPin1LargeB.png", 56, 56);&lt;BR /&gt;var clustermarkermedium = new PictureMarkerSymbol(picBaseUrl + "BluePin1LargeB.png", 64, 64);&lt;BR /&gt;var clustermarkerlarge = new PictureMarkerSymbol(picBaseUrl + "RedPin1LargeB.png", 72, 72);&lt;BR /&gt;var pin = new PictureMarkerSymbol(picBaseUrl + "BluePin1LargeB.png", 48, 48);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea how to implement this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Aditya Kumar&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2022 17:09:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/picture-marker-symbol-for-clustering/m-p/1242738#M79687</guid>
      <dc:creator>ADITYAKUMAR1</dc:creator>
      <dc:date>2022-12-20T17:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: Picture Marker Symbol for clustering</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/picture-marker-symbol-for-clustering/m-p/1242747#M79688</link>
      <description>&lt;P&gt;That pattern isn't supported in 4.x. Rather than set a symbol for each graphic, you should set a renderer on the FeatureLayer. In this case you would set a SimpleRenderer with a PictureMarkerSymbol on the symbol property.&lt;/P&gt;&lt;P&gt;Very similar to how you see it in this sample:&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/layers-featurelayer-collection/" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/sample-code/layers-featurelayer-collection/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2022 17:48:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/picture-marker-symbol-for-clustering/m-p/1242747#M79688</guid>
      <dc:creator>KristianEkenes</dc:creator>
      <dc:date>2022-12-20T17:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: Picture Marker Symbol for clustering</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/picture-marker-symbol-for-clustering/m-p/1243652#M79727</link>
      <description>&lt;P&gt;I approached ESRI customer support and they told its possible. Once I have a sample code Iwill share in the forum soon&lt;/P&gt;</description>
      <pubDate>Sat, 24 Dec 2022 14:13:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/picture-marker-symbol-for-clustering/m-p/1243652#M79727</guid>
      <dc:creator>ADITYAKUMAR1</dc:creator>
      <dc:date>2022-12-24T14:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: Picture Marker Symbol for clustering</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/picture-marker-symbol-for-clustering/m-p/1252819#M80098</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/44467"&gt;@KristianEkenes&lt;/a&gt;&amp;nbsp;I found the solution.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;let renderer = new ClassBreaksRenderer({&lt;BR /&gt;field: "cluster_count"&lt;BR /&gt;});&lt;BR /&gt;renderer.addClassBreakInfo({&lt;BR /&gt;minValue: 1,&lt;BR /&gt;maxValue: 1,&lt;BR /&gt;symbol: {&lt;BR /&gt;type: "picture-marker", // autocasts as new PictureMarkerSymbol()&lt;BR /&gt;url: "&lt;A href="https://static.arcgis.com/images/Symbols/Shapes/BlueStarLargeB.png" target="_blank"&gt;https://static.arcgis.com/images/Symbols/Shapes/BlueStarLargeB.png&lt;/A&gt;",&lt;BR /&gt;&lt;BR /&gt;height: "48px",&lt;BR /&gt;width: "48px"&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2023 12:10:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/picture-marker-symbol-for-clustering/m-p/1252819#M80098</guid>
      <dc:creator>ADITYAKUMAR1</dc:creator>
      <dc:date>2023-01-30T12:10:15Z</dc:date>
    </item>
  </channel>
</rss>

