AggregateGeoElement class final
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.
- Implemented types
Properties
-
attributes
→ Map<
String, dynamic> -
The attributes of the GeoElement as a collection of name/value pairs.
no setteroverride
- geometry → Geometry?
-
The geometry defines the shape and location of the GeoElement.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- isSelected ↔ bool
-
True if the aggregate geoelement is selected, false otherwise.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getGeoElements(
) → Future< List< GeoElement> > - Gets the collection of geoelements represented by this aggregate geoelement.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited