Binning - basic configuration
This sample demonstrates how to enable binning on a FeatureLayer. Binning is a method of aggregating points in a FeatureLayer, CSVLayer, GeoJSONLayer, WFSLayer, or OGCFeatureLayer by grouping them in predefined bins. Bins are generated using geohashes.
Binning is configured on the featureReduction property of the layer. This property allows you to define a renderer, popupTemplate and labels that summarize the features that fall within each bin's boundaries. Bins do not have a default renderer, so you must define a renderer to see the bins.
Binning only applies to layers with point
geometries in a MapView.
Binning versus clustering
Conceptually, binning is very similar to clustering. Both, in addition to heatmaps, are methods for visualizing densities of points. The following are key differences to consider when choosing a method of feature reduction.
Clustering
Clustering aggregates points into clusters that don't communicate a definite boundary between clusters. The region that each cluster uses to aggregate points varies depending on the density and dispersion of points. One cluster may aggregate points from an area much larger than a neighboring cluster.
The style of a cluster, it's size and color, are predetermined by the rendering engine and effectively summarize the underlying point data making up the cluster. This style cannot be modified.
Clusters dynamically explode to smaller clusters as the user zooms in and coalesce to larger clusters as the user zooms out.
Binning
Bins aggregates points into geohashes of equal area and size. The boundaries are discrete and obvious so there is no ambiguity to the area used to aggregate points to bins.
Bins can be styled in the same way a layer can be styled. You can use aggregate fields to style the bins using any renderer that can be applied to a polygon FeatureLayer.
Bins are static and do not regenerate as the user zooms in and out in the map.
Related samples and resources

Binning with aggregate fields
This sample demonstrates how to define aggregate fields that can be used in the popup, labels, and renderer of a binned layer.

Binning - Filter by category
Demonstrates how to filter binned data by category.

Summarize binned data using Arcade
Use Arcade in popups to summarize binned crimes by type

Point clustering - basic configuration
Point clustering - basic configuration
FeatureReductionBinning
Read the API Reference for more information.