Module com.esri.arcgisruntime
Class AggregateGeoElement
java.lang.Object
com.esri.arcgisruntime.mapping.reduction.AggregateGeoElement
- All Implemented Interfaces:
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 Summary
Modifier and TypeMethodDescriptioncomputeCalloutLocation
(Point tapLocation, MapView mapView) Gets the attributes of the GeoElement as a collection of name/value pairs.Gets the geometry which defines the shape and location of the GeoElement.void
setGeometry
(Geometry geometry) Sets the geometry defines the shape and location of the GeoElement.
-
Method Details
-
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 interfaceGeoElement
- Returns:
- the attributes of the GeoElement as a collection of name/value pairs
-
getGeometry
Description copied from interface:GeoElement
Gets the geometry which defines the shape and location of the GeoElement.- Specified by:
getGeometry
in interfaceGeoElement
- Returns:
- the geometry defines the shape and location of the GeoElement, or null if none
-
setGeometry
Description copied from interface:GeoElement
Sets the geometry defines the shape and location of the GeoElement.- Specified by:
setGeometry
in interfaceGeoElement
- Parameters:
geometry
- the geometry defines the shape and location of the GeoElement
-
computeCalloutLocation
- Specified by:
computeCalloutLocation
in interfaceGeoElement
- Parameters:
tapLocation
- location used to compute the callout location, can be nullmapView
- 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
-