Package com.esri.arcgisruntime.layers
Class ScaleDisplayFilterDefinition
- java.lang.Object
-
- com.esri.arcgisruntime.layers.DisplayFilterDefinition
-
- com.esri.arcgisruntime.layers.ScaleDisplayFilterDefinition
-
public class ScaleDisplayFilterDefinition extends DisplayFilterDefinition
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:
ManualDisplayFilterDefinition
-
-
Constructor Summary
Constructors Constructor Description ScaleDisplayFilterDefinition(java.lang.Iterable<ScaleRangeDisplayFilter> filters)
Creates a new ScaleDisplayFilterDefinition with the specified scale range display filters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<ScaleRangeDisplayFilter>
getFilters()
Gets the collection of scale range display filters.
-
-
-
Constructor Detail
-
ScaleDisplayFilterDefinition
public ScaleDisplayFilterDefinition(java.lang.Iterable<ScaleRangeDisplayFilter> filters)
Creates a new ScaleDisplayFilterDefinition with the specified scale range display filters.- Parameters:
filters
- the collection of scale range display filters- Throws:
java.lang.IllegalArgumentException
- if filters is null- Since:
- 100.13.0
-
-
Method Detail
-
getFilters
public java.util.List<ScaleRangeDisplayFilter> getFilters()
Gets the collection of scale range display filters.To enable display filter on a layer, every
ScaleRangeDisplayFilter
in this collection must provide aScaleRangeDisplayFilter.getMinScale()
orScaleRangeDisplayFilter.getMaxScale()
within the map's current scale. If more than oneScaleRangeDisplayFilter
is applicable at a given scale, the firstScaleRangeDisplayFilter
within the current map scale is applied. If the features displayed are not expected, check the layer'sLayerViewState
for aLayerViewStatus.WARNING
as there might be aLayerViewState.getError()
indicating that there is a scale overlap between multipleScaleRangeDisplayFilter
objects.- Returns:
- the collection of scale range display filters
- Since:
- 100.13.0
- See Also:
ScaleRangeDisplayFilter
-
-