queryFeatures

suspend fun queryFeatures(parameters: QueryParameters, queryFeatureFields: QueryFeatureFields): Result<FeatureQueryResult>

Queries features from this table's cache and/or from the feature service used to create this table. If the request mode of the table is FeatureRequestMode.ManualCache, then the query is always performed on the local table.

If the mode is FeatureRequestMode.OnInteractionCache, then the query is performed on the local cache, provided that the geometries of the features are within an extent that has been cached; otherwise, the query is performed on the server.

If the mode is FeatureRequestMode.OnInteractionNoCache, the query is always performed on the server.

QueryFeatureFields controls which fields will be included with the returned features. The options are:

Note that you can query any attribute defined by the feature service's table. If the attribute is not in the set of attributes in your local table, the query will be performed on the server.

Return

A Result that returns a FeatureQueryResult type.

Since

200.1.0

See also

FeatureServiceSessionType