Filter features from the display based on the current map scale. More...
Header | #include <Scale |
Since | Esri |
Inherits | Esri |
Public Functions
Scale | |
virtual | ~ |
Esri | filters() const |
Detailed Description
This is useful when there is high feature density at small scales making the display difficult to interpret or slow to draw.
See also ManualDisplayFilterDefinition.
Member Function Documentation
[explicit]
ScaleDisplayFilterDefinition::ScaleDisplayFilterDefinition (const QList <Esri::ArcGISRuntime::ScaleRangeDisplayFilter *> &filters, QObject *parent = nullptr)
Creates a new ScaleDisplayFilterDefinition with the specified scale range display filters.
- filters - The collection of scale range display filters.
- parent - The optional parent QObject.
[override virtual noexcept]
ScaleDisplayFilterDefinition::~ScaleDisplayFilterDefinition ()
Destructor.
Esri::ArcGISRuntime::ScaleRangeDisplayFilterListModel *ScaleDisplayFilterDefinition::filters() const
Returns the collection of scale range display filters. To enable display filter on a layer, every ScaleRangeDisplayFilter in this collection must provide a ScaleRangeDisplayFilter::minScale or ScaleRangeDisplayFilter::maxScale within the map's current scale.
If more than one ScaleRangeDisplayFilter is applicable at a given scale, the first ScaleRangeDisplayFilter within the current map scale is applied.
If the features displayed are not expected, check the layer's LayerViewState for a LayerViewStatus::Warning with a LayerViewState::error indicating there is a scale overlap between multiple ScaleRangeDisplayFilter objects.