Class AggregateGeoElement

java.lang.Object
com.esri.arcgisruntime.mapping.reduction.AggregateGeoElement
All Implemented Interfaces:
GeoElement

public final class AggregateGeoElement extends Object implements GeoElement
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. The attributes are the summary statistics defined at the time of configuring aggregation on a FeatureLayer. The geometry is a GeometryType.POINT representing the centroid of the aggregated geoelement.

Since:
200.2.0
See Also:
  • Method Details

    • getAttributes

      public Map<String,Object> getAttributes()
      Description copied from interface: GeoElement
      Gets the attributes of the GeoElement as a collection of name/value pairs.

      Attribute values are returned as Object instances, but the underlying value type is based on the Field.Type.

      Specified by:
      getAttributes in interface GeoElement
      Returns:
      the attributes of the GeoElement as a collection of name/value pairs
    • getGeometry

      public Geometry getGeometry()
      Description copied from interface: GeoElement
      Gets the geometry which defines the shape and location of the GeoElement.
      Specified by:
      getGeometry in interface GeoElement
      Returns:
      the geometry defines the shape and location of the GeoElement, or null if none
    • setGeometry

      public void setGeometry(Geometry geometry)
      Description copied from interface: GeoElement
      Sets the geometry defines the shape and location of the GeoElement.
      Specified by:
      setGeometry in interface GeoElement
      Parameters:
      geometry - the geometry defines the shape and location of the GeoElement
    • computeCalloutLocation

      public Point computeCalloutLocation(Point tapLocation, MapView mapView)
      Specified by:
      computeCalloutLocation in interface GeoElement
      Parameters:
      tapLocation - location used to compute the callout location, can be null
      mapView - if specified and if a marker symbol is displayed for this GeoElement, the leader offset of the marker symbol will be used in this computation; can be null
      Returns:
      the computed location to place the callout
      • if tapLocation is null, computed location will be based on geometry alone
      • if tapLocation is not-null and inside geometry, then the computed location is same as the tapLocation
      • if tapLocation is not-null and outside geometry, then the computed location is the nearest point on the geometry from the tapLocation