Limit the features displayed on a map with a definition expression.
Set a definition expression to filter out the features to be displayed. You might filter a dataset of tree quality selecting for only those trees which require maintenance or are damaged.
Press the 'Apply Expression' button to limit the features requested from the feature layer to those specified by the SQL query definition expression. Tap the 'Reset Expression' button to remove the definition expression on the feature layer, which returns all the records.
- Create a service feature table from a URL.
- Create a feature layer from the service feature table.
- Set the limit of the features on your feature layer using the
DefinitionExpression
.
- DefinitionExpression
- FeatureLayer
- ServiceFeatureTable
This map displays point features related to crime incidents that have been reported by city residents.
definition expression, filter, limit data, query, restrict data, SQL, where clause