layout: default title: TopFilter parent: Core Classes —

dymaptic.GeoBlazor.Core

dymaptic.GeoBlazor.Core.Objects

TopFilter Class

This class defines the top filter parameters for executing top features queries for features from a FeatureLayer.
This parameter must be set on the TopFeaturesQuery object when calling any of top query methods on a FeatureLayer.
It is used to set the groupByFields, orderByFields, and count criteria used the top features query. For example,
you can use FeatureLayer’s queryTopFeatures() method to query the most populous three counties in each state of the
United States.
ArcGIS Maps SDK for JavaScript

public class TopFilter

Inheritance System.Object 🡒 TopFilter

Properties

TopFilter.GroupByFields Property

When one or more field names are provided in this property, the output result will be grouped based on unique
values from those fields.

public System.Collections.Generic.IEnumerable<string>? GroupByFields { get; set; }

Property Value

System.Collections.Generic.IEnumerable<System.String>

TopFilter.OrderByFields Property

One or more field names used to order the query results. Specify ASC (ascending) or DESC (descending) after the
field name to control the order. The default order is ASC.

public System.Collections.Generic.IEnumerable<string>? OrderByFields { get; set; }

Property Value

System.Collections.Generic.IEnumerable<System.String>

TopFilter.TopCount Property

Defines the number of features to be returned from the top features query.

public System.Nullable<int> TopCount { get; set; }

Property Value

System.Nullable<System.Int32>