layout: default title: FeatureFilter parent: Core Classes —

dymaptic.GeoBlazor.Core

dymaptic.GeoBlazor.Core.Components.Layers

FeatureFilter Class

ArcGIS Maps SDK for JavaScript

public class FeatureFilter

Inheritance System.Object 🡒 FeatureFilter

Properties

FeatureFilter.Distance Property

Specifies a search distance from a given geometry in a spatial filter. The units property indicates the unit of
measurement. In essence, setting this property creates a buffer at the specified size around the input geometry.
The filter will use that buffer to display features in the layer or layer view that adhere to the to the indicated
spatial relationship.

public System.Nullable<double> Distance { get; set; }

Property Value

System.Nullable<System.Double>

FeatureFilter.Geometry Property

The geometry to apply to the spatial filter. The spatial relationship as specified by spatialRelationship will
indicate how the geometry should be used to filter features.

public dymaptic.GeoBlazor.Core.Components.Geometries.Geometry? Geometry { get; set; }

Property Value

Geometry

Remarks

Known Limitations: Mesh geometry types are currently not supported.

FeatureFilter.ObjectIds Property

An array of objectIds of the features to be filtered.

public System.Collections.Generic.IEnumerable<int>? ObjectIds { get; set; }

Property Value

System.Collections.Generic.IEnumerable<System.Int32>

FeatureFilter.SpatialRelationship Property

For spatial filters, this parameter defines the spatial relationship to filter features in the layer view against
the filter geometry. The spatial relationships discover how features are spatially related to each other. For
example, you may want to know if a polygon representing a county completely contains points representing
settlements.

public System.Nullable<dymaptic.GeoBlazor.Core.Objects.SpatialRelationship> SpatialRelationship { get; set; }

Property Value

System.Nullable<SpatialRelationship>

FeatureFilter.TimeExtent Property

A range of time with start and end date. Only the features that fall within this time extent will be displayed. The
Date field to be used for timeExtent should be added to outFields list when the layer is initialized. This ensures
the best user experience when switching or updating fields for time filters.

public dymaptic.GeoBlazor.Core.Objects.TimeExtent? TimeExtent { get; set; }

Property Value

TimeExtent

FeatureFilter.Units Property

The unit for calculating the buffer distance when distance is specified in a spatial filter. If units is not
specified, the unit is derived from the filter geometry’s spatial reference.

public System.Nullable<dymaptic.GeoBlazor.Core.Objects.LinearUnit> Units { get; set; }

Property Value

System.Nullable<LinearUnit>

FeatureFilter.Where Property

A where clause for the feature filter. Any legal SQL92 where clause operating on the fields in the layer is
allowed. Be sure to have the correct sequence of single and double quotes when writing the where clause in
JavaScript.
For apps where users can interactively change fields used for attribute filter, we suggest you include all possible
fields in the outFields of the layer. This ensures the best user experience when switching or updating fields for
attribute filters.

public string? Where { get; set; }

Property Value

System.String