<?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 Clustering in GraphicsLayer in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/clustering-in-graphicslayer/m-p/1326482#M82188</link>
    <description>&lt;P&gt;Is it possible to add clustering to graphics layer in version 4.27 ?&lt;BR /&gt;&lt;SPAN&gt;featureReduction props is not available in the docs also.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GraphicsLayer.html#properties-summary" target="_blank" rel="nofollow noopener noreferrer"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GraphicsLayer.html#propert...&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Is it possible to have clustering if it has only points geometry in graphics layer ? i know Polygon and Line string is not supported&lt;/P&gt;</description>
    <pubDate>Thu, 07 Sep 2023 16:46:10 GMT</pubDate>
    <dc:creator>RaviVadlamani</dc:creator>
    <dc:date>2023-09-07T16:46:10Z</dc:date>
    <item>
      <title>Clustering in GraphicsLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/clustering-in-graphicslayer/m-p/1326482#M82188</link>
      <description>&lt;P&gt;Is it possible to add clustering to graphics layer in version 4.27 ?&lt;BR /&gt;&lt;SPAN&gt;featureReduction props is not available in the docs also.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GraphicsLayer.html#properties-summary" target="_blank" rel="nofollow noopener noreferrer"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GraphicsLayer.html#propert...&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Is it possible to have clustering if it has only points geometry in graphics layer ? i know Polygon and Line string is not supported&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2023 16:46:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/clustering-in-graphicslayer/m-p/1326482#M82188</guid>
      <dc:creator>RaviVadlamani</dc:creator>
      <dc:date>2023-09-07T16:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: Clustering in GraphicsLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/clustering-in-graphicslayer/m-p/1326575#M82191</link>
      <description>&lt;P&gt;What you can do is create a feature layer client-side and add your graphics to it.&amp;nbsp; Instead of specifying a URL to a feature layer or referencing a portal item, like you typically do.&amp;nbsp; You can create a feature layer with a collection of graphics as the source, also you'll want to specify the geometryType and any fields you'll be using.&amp;nbsp; Then you'll be able to apply the featureReduction properties.&amp;nbsp; If you need to add more features to it you'd just use the applyEdits function.&amp;nbsp; Here is a snippet from the SDK documentation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const layer = new FeatureLayer({
  source: graphics,
  fields: [{
    name: "ObjectID",
    alias: "ObjectID",
    type: "oid"
  }, {
    name: "place",
    alias: "Place",
    type: "string"
  }],
  objectIdField: "ObjectID",
  geometryType: "point"
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Better yet here is a sample:&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2023 20:56:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/clustering-in-graphicslayer/m-p/1326575#M82191</guid>
      <dc:creator>Justin_Greco</dc:creator>
      <dc:date>2023-09-07T20:56:46Z</dc:date>
    </item>
  </channel>
</rss>

