getGeoElements method
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.
As a user navigates the map, aggregate geoelements update dynamically depending on the map's scale and extent. When aggregate geoelements are re-created, new aggregate geoelements are drawn. References to AggregateGeoElement instances that are no longer drawn on the map retain their association to the geoelements they aggregated.
Return Value: A Future that returns a List containing GeoElement types.
Implementation
Future<List<GeoElement>> getGeoElements() {
final taskHandle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_AggregateGeoElement_getGeoElementsAsync(
_handle,
errorHandler,
);
});
return taskHandle.toFuture(
(element) => element.getValueAsList()!,
);
}