Clustering Feature Reduction
Creates a ClusteringFeatureReduction object using the given renderer and default values for min size, max size and radius of the cluster. Only com.arcgismaps.mapping.symbology.SimpleRenderer, com.arcgismaps.mapping.symbology.UniqueValueRenderer, and com.arcgismaps.mapping.symbology.ClassBreaksRenderer are currently supported for AggregationFeatureReduction.renderer. com.arcgismaps.mapping.symbology.UniqueValueRenderer with multiple fields is not supported. If the renderer passed is not one of the supported renderer types listed above, then original features from the com.arcgismaps.mapping.layers.FeatureLayer or original graphics from the com.arcgismaps.mapping.view.GraphicsOverlay are drawn using com.arcgismaps.mapping.layers.FeatureLayer.renderer or com.arcgismaps.mapping.view.GraphicsOverlay.renderer respectively. In case of com.arcgismaps.mapping.layers.FeatureLayer, a com.arcgismaps.mapping.view.LayerViewState that contains an error indicating the use of an unsupported renderer is bubbled up. Also note, AggregationFeatureReduction.renderer is independent of com.arcgismaps.mapping.layers.FeatureLayer.renderer and com.arcgismaps.mapping.view.GraphicsOverlay.renderer.
If you want to symbolize clusters using the same symbology used by the com.arcgismaps.mapping.layers.FeatureLayer or com.arcgismaps.mapping.view.GraphicsOverlay, you may clone com.arcgismaps.mapping.layers.FeatureLayer.renderer or com.arcgismaps.mapping.view.GraphicsOverlay.renderer and set it here. You can also create a new renderer of a supported type. If you create a new com.arcgismaps.mapping.symbology.SimpleRenderer, clusters will be drawn using the symbol defined for the com.arcgismaps.mapping.symbology.SimpleRenderer. If the new renderer is of type com.arcgismaps.mapping.symbology.ClassBreaksRenderer or com.arcgismaps.mapping.symbology.UniqueValueRenderer, the field name on the renderer must match one of the AggregateField in AggregationFeatureReduction.aggregateFields. If this field is not found in AggregationFeatureReduction.aggregateFields, the cluster will be drawn using com.arcgismaps.mapping.symbology.ClassBreaksRenderer.defaultSymbol or com.arcgismaps.mapping.symbology.UniqueValueRenderer.defaultSymbol. If there is no default symbol defined, clusters will not be drawn.
Since
200.3.0
Parameters
The renderer for drawing clustered geoelements.