Module com.esri.arcgisruntime
Package com.esri.arcgisruntime.layers
Class ScaleDisplayFilterDefinition
java.lang.Object
com.esri.arcgisruntime.layers.DisplayFilterDefinition
com.esri.arcgisruntime.layers.ScaleDisplayFilterDefinition
Filter features from the display based on the current map scale.
This is useful when there is so much feature density at small scales making the display difficult to interpret or slow to draw.
- Since:
- 100.13.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new ScaleDisplayFilterDefinition with the specified scale range display filters. -
Method Summary
Modifier and TypeMethodDescriptionGets the collection of scale range display filters.
-
Constructor Details
-
ScaleDisplayFilterDefinition
Creates a new ScaleDisplayFilterDefinition with the specified scale range display filters.- Parameters:
filters- the collection of scale range display filters- Throws:
IllegalArgumentException- if filters is null- Since:
- 100.13.0
-
-
Method Details
-
getFilters
Gets the collection of scale range display filters.To enable display filter on a layer, every
ScaleRangeDisplayFilterin this collection must provide aScaleRangeDisplayFilter.getMinScale()orScaleRangeDisplayFilter.getMaxScale()within the map's current scale. If more than oneScaleRangeDisplayFilteris applicable at a given scale, the firstScaleRangeDisplayFilterwithin the current map scale is applied. If the features displayed are not expected, check the layer'sLayerViewStatefor aLayerViewStatus.WARNINGas there might be aLayerViewState.getError()indicating that there is a scale overlap between multipleScaleRangeDisplayFilterobjects.- Returns:
- the collection of scale range display filters
- Since:
- 100.13.0
-