A set of features that share a common schema.

Hierarchy

Implements

Constructors

Properties

[toStringTag]

Used by Object.toString().

@eventTypes: FeatureSetEvents

Do not directly reference this property. Use EventNames and EventTypes helpers from @arcgis/core/Evented.

id: string

The unique ID for this entity.

schema: Schema = ...

Metadata about features such as fields, domains, and geometry type.

settings: FeatureSettings = ...

Default settings that apply to features in this set.

title: string

A human-readable name for the feature set.

Accessors

  • get itemType(): string
  • The item type for this entity when it participates in an App.

    Returns string

  • get size(): number
  • The number of elements in the set.

    Returns number

Methods

  • Parameters

    • feature: Feature
    • notify: boolean = true

    Returns this

  • Parameters

    • feature: Feature
    • notify: boolean = true

    Returns boolean

  • Returns each element in the set in insertion order.

    Returns SetIterator<Feature>

  • Parameters

    Returns this

  • Parameters

    • features: Iterable<Feature, any, any>

    Returns this

  • Sets the properties for this item.

    This version will also await any asynchronous logic that is needed to set the properties.

    Parameters

    • properties: Partial<FeatureSetProperties>

      A plain object containing property values to set, keyed by property name.

    Returns Promise<void>

  • Returns void

  • Parameters

    Returns boolean

  • Parameters

    • features: Iterable<Feature, any, any>

    Returns boolean

  • Finds a feature in the set with the given ID, or undefined if there is no match.

    Parameters

    • id: string

      The ID to search for.

    Returns Feature

  • Finds a feature in the set with the given primary key, or undefined if there is no match.

    Parameters

    • primaryKey: string

      The primary key to search for.

    Returns Feature

  • Waits for all deserialization logic initiated thus far to finish, whether invoked by passing properties into the constructor, or by invoking assignProperties() or assignPropertiesAsync().

    Returns Promise<void>

  • Parameters

    • callbackfn: ((value: Feature, value2: Feature, set: Set<Feature>) => void)

      Function to execute for each element.

    • OptionalthisArg: unknown

      Value to use as this when executing callback.

    Returns void

  • Indicates whether or not the set contains the specified element.

    Parameters

    • feature: Feature

      The element to test for.

    Returns boolean

  • Returns SetIterator<Feature>

  • Creates an item:// URI reference to this entity.

    Returns string

  • Returns SetIterator<Feature>