ScaleDisplayFilterDefinition Class

  • ScaleDisplayFilterDefinition
  • class Esri::ArcGISRuntime::ScaleDisplayFilterDefinition

    Filter features from the display based on the current map scale. More...

    Header: #include <ScaleDisplayFilterDefinition.h>
    Since: Esri::ArcGISRuntime 100.13
    Inherits: Esri::ArcGISRuntime::DisplayFilterDefinition

    Public Functions

    ScaleDisplayFilterDefinition(const QList<Esri::ArcGISRuntime::ScaleRangeDisplayFilter *> &filters, QObject *parent = nullptr)
    virtual ~ScaleDisplayFilterDefinition() override
    Esri::ArcGISRuntime::ScaleRangeDisplayFilterListModel *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] 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.

    Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.