renderer
Defines the symbology for displaying aggregated geoelements. 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 the 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 that AggregationFeatureReduction.renderer is independent of com.arcgismaps.mapping.layers.FeatureLayer.renderer and com.arcgismaps.mapping.view.GraphicsOverlay.renderer.
If you want to symbolize aggregate geoelements 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, aggregate geoelements will display with 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, aggregate geoelements will draw using com.arcgismaps.mapping.symbology.ClassBreaksRenderer.defaultSymbol or com.arcgismaps.mapping.symbology.UniqueValueRenderer.defaultSymbol. If there is no default symbol defined, aggregate geoelements will not draw.
Note: Updating the renderer causes data to be re-aggregated.
Since
200.3.0