Skip To Content ArcGIS for Developers Sign In Dashboard

ArcGISFeatureListModel QML Type

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

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

Properties

Signals

Methods

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.


featureChanged()

Emitted when the features property of the model changes.

Note: The corresponding handler is onFeatureChanged.


Method Documentation

bool contains(feature)

Returns true if the list model contains the specified feature.


void 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.

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

ArcGISFeature get(index)

Returns the ArcGISFeature at the specified index.


int indexOf(feature)

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



Feedback on this topic?