<?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: Angular CLI cluster creation with custom lat and long in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/angular-cli-cluster-creation-with-custom-lat-and/m-p/1105771#M74910</link>
    <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/180"&gt;@AndyGup&lt;/a&gt;&amp;nbsp;the above steps helped.&amp;nbsp;&lt;BR /&gt;Could you please suggest how to access all cluster data in the popupTemplate.&lt;BR /&gt;&lt;BR /&gt;I am looking like the following example in Typescript&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/javascript/3/sandbox/sandbox.html?sample=layers_point_clustering" target="_blank"&gt;https://developers.arcgis.com/javascript/3/sandbox/sandbox.html?sample=layers_point_clustering&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I tried with this example, but not able to access ClusterLayer.js in my Angular app.&lt;/P&gt;</description>
    <pubDate>Fri, 08 Oct 2021 02:04:18 GMT</pubDate>
    <dc:creator>RaviKumarEkkuluri</dc:creator>
    <dc:date>2021-10-08T02:04:18Z</dc:date>
    <item>
      <title>Angular CLI cluster creation with custom lat and long</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/angular-cli-cluster-creation-with-custom-lat-and/m-p/1104532#M74872</link>
      <description>&lt;P&gt;Hi, Its a basic question. I started learning.&amp;nbsp;&lt;BR /&gt;I am looking for a Angular CLI support clustered maps with custom lat and long.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 04 Oct 2021 19:16:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/angular-cli-cluster-creation-with-custom-lat-and/m-p/1104532#M74872</guid>
      <dc:creator>ekkuluriravi</dc:creator>
      <dc:date>2021-10-04T19:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: Angular CLI cluster creation with custom lat and long</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/angular-cli-cluster-creation-with-custom-lat-and/m-p/1104583#M74875</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/526159"&gt;@ekkuluriravi&lt;/a&gt;there is an SDK Guide Topic covering cluster here: &lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/featurereduction-cluster/" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/sample-code/featurereduction-cluster/&lt;/A&gt;. My recommendation is get the functionality working in vanilla JS first and then migrate it to Angular.&lt;/P&gt;&lt;P&gt;Also, here is our Angular CLI example: &lt;A href="https://github.com/Esri/jsapi-resources/tree/master/esm-samples/jsapi-angular-cli" target="_blank"&gt;https://github.com/Esri/jsapi-resources/tree/master/esm-samples/jsapi-angular-cli&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Oct 2021 21:24:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/angular-cli-cluster-creation-with-custom-lat-and/m-p/1104583#M74875</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2021-10-04T21:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: Angular CLI cluster creation with custom lat and long</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/angular-cli-cluster-creation-with-custom-lat-and/m-p/1105062#M74883</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/180"&gt;@AndyGup&lt;/a&gt;&amp;nbsp;for the response. Could you please help me how do i show the clusters with my Json(lat,lng and name). Any examples in vanilla js that will help&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2021 04:09:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/angular-cli-cluster-creation-with-custom-lat-and/m-p/1105062#M74883</guid>
      <dc:creator>RaviKumarEkkuluri</dc:creator>
      <dc:date>2021-10-06T04:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: Angular CLI cluster creation with custom lat and long</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/angular-cli-cluster-creation-with-custom-lat-and/m-p/1105220#M74892</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/525444"&gt;@RaviKumarEkkuluri&lt;/a&gt;if you are using a FeatureLayer for clustering, then take a look at the code snippet example in the source property: &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#source" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#source&lt;/A&gt;. Also take a look at the API doc for point Geometry: &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;One caveat with Angular and TypeScript is you have to explicitly declare all ArcGIS JS API classes because of a well-known limitation in TypeScript. You'll have to convert your JSON to an array of Graphics, and then add those Graphics to FeatureLayer.source. Here's an example of how it will work in the API:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;import FeatureLayer from '@arcgis/core/layers/FeatureLayer';
import Graphic from "@arcgis/core/Graphic";
import Point from "@arcgis/core/geometry/Point";
    
let point = new Point(
 {
    latitude: 100,
    longitude: 30
 });

let tempGraphic = new Graphic({
  geometry: point,
  attributes: {
     ObjectID: 1,
     DepArpt: "KATL",
     MsgTime: Date.now(),
     FltId: "UAL1"
   }
});

let layer = new FeatureLayer({
  source: [tempGraphic],  
  objectIdField: "ObjectID"
}); &lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 06 Oct 2021 15:50:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/angular-cli-cluster-creation-with-custom-lat-and/m-p/1105220#M74892</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2021-10-06T15:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: Angular CLI cluster creation with custom lat and long</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/angular-cli-cluster-creation-with-custom-lat-and/m-p/1105771#M74910</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/180"&gt;@AndyGup&lt;/a&gt;&amp;nbsp;the above steps helped.&amp;nbsp;&lt;BR /&gt;Could you please suggest how to access all cluster data in the popupTemplate.&lt;BR /&gt;&lt;BR /&gt;I am looking like the following example in Typescript&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/javascript/3/sandbox/sandbox.html?sample=layers_point_clustering" target="_blank"&gt;https://developers.arcgis.com/javascript/3/sandbox/sandbox.html?sample=layers_point_clustering&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I tried with this example, but not able to access ClusterLayer.js in my Angular app.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Oct 2021 02:04:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/angular-cli-cluster-creation-with-custom-lat-and/m-p/1105771#M74910</guid>
      <dc:creator>RaviKumarEkkuluri</dc:creator>
      <dc:date>2021-10-08T02:04:18Z</dc:date>
    </item>
  </channel>
</rss>

