AggregateField.withArcadeExpression constructor

AggregateField.withArcadeExpression({
  1. required String name,
  2. required ArcadeExpression statisticExpression,
  3. required AggregateStatisticType statisticType,
})

Creates an AggregateField object.

Parameters:

  • name — A name that uniquely identifies the aggregate field within the AggregationFeatureReduction.aggregateFields collection.
  • statisticExpression — An Arcade expression that evaluates to either a string or a number.
  • statisticType — Type of statistic used to summarize numeric field for aggregated geoelements.