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.