AggregateGeoElement

A GeoElement that represents aggregated geoelement on the map, for example a cluster of features or graphics. Based on aggregation properties defined in AggregationFeatureReduction, geoelements are aggregated dynamically as the scale of the map changes. AggregateGeoElement.attributes are the summary statistics defined at the time of configuring aggregation on a FeatureLayer. AggregateGeoElement.geometry is a GeometryType.Point representing the centroid of the aggregated geoelement. By default, AggregateGeoElement has a cluster_count attribute. Aggregated geoelements only have access to the fields listed in AggregationFeatureReduction.aggregateFields. The fields from the feature layer are not accessible for use in popups, labels, or renderers for aggregated geoelements.

You can select or unselect aggregate geoelements using the AggregateGeoElement.isSelected property. Call AggregateGeoElement.getGeoElements() to get the collection of geoelements represented by the aggregate geoelement.

Since

200.2.0

See also

Properties

Link copied to clipboard

True if the aggregate geoelement is selected, false otherwise. Selecting an AggregateGeoElement adds a temporary visual selection halo around the aggregate geoelement. Selected aggregate geoelements are rendered according to the GeoView.selectionProperties.

Inherited properties

Link copied to clipboard
open override val attributes: Map<String, Any?>

The attributes of the GeoElement as a collection of name/value pairs.

Link copied to clipboard
open override val geometry: Geometry?

The geometry defines the shape and location of the GeoElement.

Functions

Link copied to clipboard

Gets the collection of geoelements represented by this aggregate geoelement. For an aggregate geoelement on a feature layer, this method returns a collection of features. For a graphics overlay, it returns a collection of graphics.