<?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 create clustered layer using an array of latitudes and longitudes in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-create-clustered-layer-using-an-array-of/m-p/1129260#M75724</link>
    <description>&lt;P&gt;Clustering isn't supported in GraphicsLayer. You can add your features to a client-side FeatureLayer with &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#featureReduction" target="_self"&gt;featureReduction&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's a sample&lt;/P&gt;&lt;P&gt;&lt;A href="https://codepen.io/odoe/pen/vYepwwR?editors=1000" target="_blank"&gt;https://codepen.io/odoe/pen/vYepwwR?editors=1000&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 28 Dec 2021 20:23:48 GMT</pubDate>
    <dc:creator>ReneRubalcava</dc:creator>
    <dc:date>2021-12-28T20:23:48Z</dc:date>
    <item>
      <title>How to create clustered layer using an array of latitudes and longitudes</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-create-clustered-layer-using-an-array-of/m-p/1129232#M75723</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;I am currently adding points onto a map by looping through an array of latitudes and longitudes. I was wondering how I would cluster this on the map, so that it doesn't display as an individual point?&lt;/P&gt;&lt;P&gt;This is the code:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;          var graphicsLayer = new GraphicsLayer();
          webmap.layers.add(graphicsLayer);

          var simpleMarkerSymbol = {
            type: "simple-marker", //
            color: [226, 119, 40], // orange
            size: 30,
            style: "circle",
            outline: {
              color: [255, 255, 255], // white
              width: 2
            }
          };

          for (i=0; i&amp;lt; zLongitude.length; i++ ){
            // Create a point
            var point = {
              type: "point",
              longitude: zLongitude[i],
              latitude: zLatitude[i],
            };

            var pointGraphic = new Graphic({
              geometry: webMercatorUtils.geographicToWebMercator(point),
              symbol: simpleMarkerSymbol
            });
            graphicsLayer.add(pointGraphic);
          }‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 28 Dec 2021 19:00:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-create-clustered-layer-using-an-array-of/m-p/1129232#M75723</guid>
      <dc:creator>BushraSyed1</dc:creator>
      <dc:date>2021-12-28T19:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to create clustered layer using an array of latitudes and longitudes</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-create-clustered-layer-using-an-array-of/m-p/1129260#M75724</link>
      <description>&lt;P&gt;Clustering isn't supported in GraphicsLayer. You can add your features to a client-side FeatureLayer with &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#featureReduction" target="_self"&gt;featureReduction&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's a sample&lt;/P&gt;&lt;P&gt;&lt;A href="https://codepen.io/odoe/pen/vYepwwR?editors=1000" target="_blank"&gt;https://codepen.io/odoe/pen/vYepwwR?editors=1000&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Dec 2021 20:23:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-create-clustered-layer-using-an-array-of/m-p/1129260#M75724</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2021-12-28T20:23:48Z</dc:date>
    </item>
  </channel>
</rss>

