<?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: Leaflet Clustering points and ArcGIS API for Javascript in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/leaflet-clustering-points-and-arcgis-api-for/m-p/405090#M37298</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Richard,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had a similar requirement, not to use leaflet, but for clustering with flares....couldn't find a solution that fit my needs so created a custom layer. Just put it on github, you may find it useful.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/nickcam/FlareClusterLayer"&gt;https://github.com/nickcam/FlareClusterLayer&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Jun 2015 13:23:52 GMT</pubDate>
    <dc:creator>NickCameron2</dc:creator>
    <dc:date>2015-06-10T13:23:52Z</dc:date>
    <item>
      <title>Leaflet Clustering points and ArcGIS API for Javascript</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/leaflet-clustering-points-and-arcgis-api-for/m-p/405084#M37292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am really interested in using Clustering points from Esri leaflet and I tried the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in my index page, I have these references:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3334ca;"&gt; &amp;lt;!-- Load Leaflet from CDN--&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3334ca;"&gt;&amp;nbsp; &amp;lt;link rel="stylesheet" href="&lt;A href="https://community.esri.com//cdn.jsdelivr.net/leaflet/0.7.3/leaflet.css" target="_blank"&gt;https://community.esri.com//cdn.jsdelivr.net/leaflet/0.7.3/leaflet.css&lt;/A&gt;" /&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3334ca;"&gt;&amp;nbsp; &amp;lt;script src="//cdn.jsdelivr.net/leaflet/0.7.3/leaflet.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3334ca;"&gt;&amp;nbsp; &amp;lt;!-- Load Esri Leaflet from CDN --&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3334ca;"&gt;&amp;nbsp; &amp;lt;script src="//cdn-geoweb.s3.amazonaws.com/esri-leaflet/1.0.0-rc.6/esri-leaflet.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3334ca;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!-- Include Leaflet.markercluster via rawgit.com, do not use in production --&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3334ca;"&gt;&lt;SPAN&gt;&amp;lt;link rel="stylesheet" type="text/css" href="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://cdn.rawgit.com/Leaflet/Leaflet.markercluster/v0.4.0/dist/MarkerCluster.Default.css" rel="nofollow noopener noreferrer" target="_blank"&gt;https://cdn.rawgit.com/Leaflet/Leaflet.markercluster/v0.4.0/dist/MarkerCluster.Default.css&lt;/A&gt;&lt;SPAN&gt;"/&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3334ca;"&gt;&lt;SPAN&gt;&amp;lt;link rel="stylesheet" type="text/css" href="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://cdn.rawgit.com/Leaflet/Leaflet.markercluster/v0.4.0/dist/MarkerCluster.css" rel="nofollow noopener noreferrer" target="_blank"&gt;https://cdn.rawgit.com/Leaflet/Leaflet.markercluster/v0.4.0/dist/MarkerCluster.css&lt;/A&gt;&lt;SPAN&gt;"/&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3334ca;"&gt;&lt;SPAN&gt;&amp;lt;script src="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://cdn.rawgit.com/Leaflet/Leaflet.markercluster/v0.4.0/dist/leaflet.markercluster.js" rel="nofollow noopener noreferrer" target="_blank"&gt;https://cdn.rawgit.com/Leaflet/Leaflet.markercluster/v0.4.0/dist/leaflet.markercluster.js&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&amp;lt;/script&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3334ca;"&gt;&amp;lt;!-- Load Clustered Feature Layer from CDN --&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3334ca;"&gt;&lt;SPAN&gt;&amp;lt;script src="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://cdn-geoweb.s3.amazonaws.com/esri-leaflet-clustered-feature-layer/1.0.0-rc.1/esri-leaflet-clustered-feature-layer.js" rel="nofollow noopener noreferrer" target="_blank"&gt;http://cdn-geoweb.s3.amazonaws.com/esri-leaflet-clustered-feature-layer/1.0.0-rc.1/esri-leaflet-clustered-feature-layer.js&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&amp;lt;/script&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3334ca;"&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;script src="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://js.arcgis.com/3.13/" rel="nofollow noopener noreferrer" target="_blank"&gt;http://js.arcgis.com/3.13/&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&amp;lt;/script&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And my code is as follow:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;map = new Map("map", {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; basemap: "streets",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; center: [-98.198017, 37.485563],
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; minZoom: 5,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; zoom: 5,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; slider:false
&amp;nbsp;&amp;nbsp;&amp;nbsp; });

&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; var fLayerTest = '&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://...fLayer/MapServer/0';" rel="nofollow noopener noreferrer" target="_blank"&gt;http://...fLayer/MapServer/0';&lt;/A&gt;


&amp;nbsp;&amp;nbsp;&amp;nbsp; var trees = L.esri.clusteredFeatureLayer(fLayerTest).addTo(map);&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code above won't work and also, it does not even give an error.&lt;/P&gt;&lt;P&gt;I am wondering if ArcGIS API is compatible with ESRI Leaflet... in terms of the map reference. Here is the Esri Leaflet I would like to use and at the same time keep the map instance as it is...&lt;/P&gt;&lt;P&gt;&lt;A href="http://esri.github.io/esri-leaflet/examples/clustering-feature-layers.html" title="http://esri.github.io/esri-leaflet/examples/clustering-feature-layers.html" rel="nofollow noopener noreferrer" target="_blank"&gt;Clustering points | Esri Leaflet&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:26:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/leaflet-clustering-points-and-arcgis-api-for/m-p/405084#M37292</guid>
      <dc:creator>RichardMoussopo</dc:creator>
      <dc:date>2021-12-11T18:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: Leaflet Clustering points and ArcGIS API for Javascript</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/leaflet-clustering-points-and-arcgis-api-for/m-p/405085#M37293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Richard,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a very simple cluster map with Leaflet.&amp;nbsp; I do like the way it clusters the points.&amp;nbsp; You can view source on it and see how I am using point clustering.&amp;nbsp; You can view it at:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.yakimawa.gov/apps/postcard/appmap.html" title="http://www.yakimawa.gov/apps/postcard/appmap.html"&gt;http://www.yakimawa.gov/apps/postcard/appmap.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="line-content"&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The JavaScript API also allows for point clustering: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/jssamples/layers_point_clustering.html" title="https://developers.arcgis.com/javascript/jssamples/layers_point_clustering.html"&gt;Point clustering | ArcGIS API for JavaScript&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure you would want to mix both APIs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 19:04:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/leaflet-clustering-points-and-arcgis-api-for/m-p/405085#M37293</guid>
      <dc:creator>TomSellsted</dc:creator>
      <dc:date>2015-03-24T19:04:10Z</dc:date>
    </item>
    <item>
      <title>Re: Leaflet Clustering points and ArcGIS API for Javascript</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/leaflet-clustering-points-and-arcgis-api-for/m-p/405086#M37294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The cluster layer you are trying to use is specific to Leaflet and Esri-Leaflet.&lt;/P&gt;&lt;P&gt;To do clustering in the ArcGIS API for JavaScript, try &lt;A href="https://github.com/Esri/cluster-layer-js"&gt;this layer out&lt;/A&gt;. It's still in development, but Esri has forked it and there are already some pull requests to clean it up a bit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 19:30:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/leaflet-clustering-points-and-arcgis-api-for/m-p/405086#M37294</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2015-03-24T19:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: Leaflet Clustering points and ArcGIS API for Javascript</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/leaflet-clustering-points-and-arcgis-api-for/m-p/405087#M37295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you both Tom and Rene, I guess I am going to use the Clustering in ArcGIS API for Javascript. I really wish I could use ESRI Leaflet for clustering. I tried &lt;STRONG style="font-size: 12.6000003814697px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;A href="https://community.esri.com/people/tsellste"&gt;tsellste&lt;/A&gt;example but I couldn't get the measurement widget to work as well as the Editor using attribute inspector as they are using the ArcGIS API for Javascript library.&lt;/STRONG&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 21:03:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/leaflet-clustering-points-and-arcgis-api-for/m-p/405087#M37295</guid>
      <dc:creator>RichardMoussopo</dc:creator>
      <dc:date>2015-03-24T21:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: Leaflet Clustering points and ArcGIS API for Javascript</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/leaflet-clustering-points-and-arcgis-api-for/m-p/405088#M37296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rene, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry but I am still having a hard time implementing the points clustering using this example: &lt;A href="http://esri.github.io/cluster-layer-js/default.html" title="http://esri.github.io/cluster-layer-js/default.html"&gt;Default Cluster Layer&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 19:34:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/leaflet-clustering-points-and-arcgis-api-for/m-p/405088#M37296</guid>
      <dc:creator>RichardMoussopo</dc:creator>
      <dc:date>2015-03-30T19:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: Leaflet Clustering points and ArcGIS API for Javascript</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/leaflet-clustering-points-and-arcgis-api-for/m-p/405089#M37297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is actually a very good concept. I hope this will be available in the 3.14 API. Also, on top of this, it would be great to add an option to be able to label features when displayed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2015 14:34:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/leaflet-clustering-points-and-arcgis-api-for/m-p/405089#M37297</guid>
      <dc:creator>RichardMoussopo</dc:creator>
      <dc:date>2015-04-20T14:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: Leaflet Clustering points and ArcGIS API for Javascript</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/leaflet-clustering-points-and-arcgis-api-for/m-p/405090#M37298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Richard,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had a similar requirement, not to use leaflet, but for clustering with flares....couldn't find a solution that fit my needs so created a custom layer. Just put it on github, you may find it useful.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/nickcam/FlareClusterLayer"&gt;https://github.com/nickcam/FlareClusterLayer&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2015 13:23:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/leaflet-clustering-points-and-arcgis-api-for/m-p/405090#M37298</guid>
      <dc:creator>NickCameron2</dc:creator>
      <dc:date>2015-06-10T13:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: Leaflet Clustering points and ArcGIS API for Javascript</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/leaflet-clustering-points-and-arcgis-api-for/m-p/405091#M37299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you describe with more details how implement this script? I'm trying implement this to apps and i understand JS slightly. App show data from AGS. Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Dec 2015 11:54:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/leaflet-clustering-points-and-arcgis-api-for/m-p/405091#M37299</guid>
      <dc:creator>LadislavRozkosny</dc:creator>
      <dc:date>2015-12-03T11:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: Leaflet Clustering points and ArcGIS API for Javascript</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/leaflet-clustering-points-and-arcgis-api-for/m-p/405092#M37300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ladislov,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry I've only just noticed that your message existed.&lt;/P&gt;&lt;P&gt;If you check out the github page and the example in the link provided, the index.html page will give you an example of how to use it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If by AGS you mean a feature layer from ArcGIS server, then it won't work directly with the layer, you'd have to query the feature layer then format the returned data into an array of javascript objects to feed to the cluster layer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've never had the use case to use a feature layer as a data source so never bothered to implement it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2016 05:24:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/leaflet-clustering-points-and-arcgis-api-for/m-p/405092#M37300</guid>
      <dc:creator>NickCameron2</dc:creator>
      <dc:date>2016-01-29T05:24:54Z</dc:date>
    </item>
  </channel>
</rss>

