Select to view content in your preferred language

Point clustering against a feature layer

1309
2
03-27-2014 12:20 AM
ChristianDebono
Emerging Contributor
I am new to the Esri Javascript API. I want to cluster points similar to this sample https://developers.arcgis.com/javascript/jssamples/layers_point_clustering.html. Are there any sample or tutorials which I can follow to implement a QueryTask against a Feature Layer and cluster the points?
0 Kudos
2 Replies
ReneRubalcava
Esri Frequent Contributor
You may want to take a look at this project
https://github.com/odoe/esri-clusterfeaturelayer

I took the ClusterLayer and updated to act more like a FeatureLayer. It has a ton of options to override renderers, zoom on click and more. The index.html file has an example of how it is used.
0 Kudos
JeremyMoore
Deactivated User
Does the clustering work with a featureLayer in selection mode? I have a large feature service that displays information upon a selection query. Any ideas on getting the selection results to cluster?
0 Kudos