ArcGISFeatureListModel QML Type

A list model storing a list of ArcGISFeature objects. More...

Import Statement: import Esri.ArcGISRuntime 100.15
Since: Esri.ArcGISRuntime 100.6

Properties

Signals

Methods

  • bool contains(ArcGISFeature feature)
  • error forEach(callback)
  • ArcGISFeature get(int index)
  • int indexOf(ArcGISFeature feature)

Detailed Description

Note: You cannot declare or create a component of this type in QML code.

See also UtilityNetwork.

Property Documentation

count : int

Returns the number of objects in the model (read-only).


features : list<ArcGISFeature>

The collection of ArcGISFeature objects as a JavaScript array (read-only).

Use this method to get a list of feature for use with FeatureLayer::selectFeatures.


Signal Documentation

countChanged()

Emitted when the count property of the model changes.

Note: The corresponding handler is onCountChanged.


featuresChanged()

Emitted when the features property of the model changes.

Note: The corresponding handler is onFeaturesChanged.


Method Documentation

bool contains(ArcGISFeature feature)

Returns true if the list model contains the specified feature.


error forEach(callback)

Receives a callback function to execute for each ArcGISFeature in the model.

The callback function can take 0 to 3 optional arguments, in order:

Returns undefined if no error occurred, and an error message otherwise.

const error = ArcGISFeatureListModel.forEach(function(element, index, array) {
    ...
});
if (error) {
    console.error(error.message);
}

ArcGISFeature get(int index)

Returns the ArcGISFeature at the specified index.


int indexOf(ArcGISFeature feature)

Returns the index of a specific preplanned feature from the list model.


Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.

You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

Your ArcGIS portal

Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

Your ArcGIS Location Platform dashboard

Manage billing, monitor service usage, and access additional resources.

Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

Close