;

WmsSublayer Class

  • WmsSublayer
  • class Esri::ArcGISRuntime::WmsSublayer

    A sublayer of a WMS Layer. More...

    Header: #include <WmsSublayer>
    Since: Esri::ArcGISRuntime 100.2
    Inherits: Esri::ArcGISRuntime::LayerContent

    This class was introduced in Esri::ArcGISRuntime 100.2.

    Public Functions

    virtual ~WmsSublayer() override
    QString currentStyle() const
    void setCurrentStyle(const QString &currentStyle)
    Esri::ArcGISRuntime::WmsLayerInfo sublayerInfo() const

    Reimplemented Public Functions

    virtual bool canChangeVisibility() const override
    virtual bool isAutoFetchLegendInfos() const override
    virtual bool isShowInLegend() const override
    virtual bool isVisible() const override
    virtual bool isVisibleAtScale(double scale) const override
    virtual Esri::ArcGISRuntime::LegendInfoListModel *legendInfos() const override
    virtual QString name() const override
    virtual void setAutoFetchLegendInfos(bool autoFetchLegendInfos) override
    virtual void setShowInLegend(bool showInLegend) override
    virtual void setVisible(bool visible) override
    virtual QList<Esri::ArcGISRuntime::LayerContent *> subLayerContents() const override

    Detailed Description

    Some layer types contain sublayers. WmsSublayer provides data necessary for building a Table of Contents. Only named WMS sublayers have an associated WmsSublayer. This list can be obtained from WmsLayer::Sublayers() property of a loaded layer.

    Member Function Documentation

    [override virtual] WmsSublayer::~WmsSublayer()

    Destructor.

    [override virtual] bool WmsSublayer::canChangeVisibility() const

    Reimplements: LayerContent::canChangeVisibility() const.

    Returns whether the sublayer's visibility can be changed.

    See LayerContent.

    QString WmsSublayer::currentStyle() const

    Returns the sublayer's current style.

    An empty style name string indicates the default style is being used.

    See also setCurrentStyle().

    [override virtual] bool WmsSublayer::isAutoFetchLegendInfos() const

    Reimplements: LayerContent::isAutoFetchLegendInfos() const.

    Returns whether legend infos are automatically fetched by the sublayer.

    See LayerContent.

    [override virtual] bool WmsSublayer::isShowInLegend() const

    Reimplements: LayerContent::isShowInLegend() const.

    Returns whether the sublayer will be shown in the legend.

    See LayerContent.

    [override virtual] bool WmsSublayer::isVisible() const

    Reimplements: LayerContent::isVisible() const.

    Returns whether the sublayer is enabled to be visible.

    See LayerContent.

    [override virtual] bool WmsSublayer::isVisibleAtScale(double scale) const

    Reimplements: LayerContent::isVisibleAtScale(double scale) const.

    Returns whether the sublayer is visible at a given scale.

    See LayerContent.

    [override virtual] Esri::ArcGISRuntime::LegendInfoListModel *WmsSublayer::legendInfos() const

    Reimplements: LayerContent::legendInfos() const.

    Returns a list model of LegendInfo objects.

    See LayerContent.

    [override virtual] QString WmsSublayer::name() const

    Reimplements: LayerContent::name() const.

    Returns the sublayer's name.

    See LayerContent.

    [override virtual] void WmsSublayer::setAutoFetchLegendInfos(bool autoFetchLegendInfos)

    Reimplements: LayerContent::setAutoFetchLegendInfos(bool autoFetchLegendInfos).

    Sets whether legend infos are automatically fetched by the sublayer's legend info list model to autoFetchLegendInfos.

    See LayerContent.

    See also isAutoFetchLegendInfos().

    void WmsSublayer::setCurrentStyle(const QString &currentStyle)

    Sets the sublayer's style to currentStyle.

    Set to an empty string to use the default style.

    This function was introduced in Esri::ArcGISRuntime 100.3.

    See also currentStyle().

    [override virtual] void WmsSublayer::setShowInLegend(bool showInLegend)

    Reimplements: LayerContent::setShowInLegend(bool showInLegend).

    Sets whether the sublayer will be shown in the legend to showInLegend.

    See LayerContent.

    See also isShowInLegend().

    [override virtual] void WmsSublayer::setVisible(bool visible)

    Reimplements: LayerContent::setVisible(bool visible).

    Sets whether the sublayer is visible to visible.

    See LayerContent.

    See also isVisible().

    [override virtual] QList<Esri::ArcGISRuntime::LayerContent *> WmsSublayer::subLayerContents() const

    Reimplements: LayerContent::subLayerContents() const.

    Returns a list of layer contents for any sublayer.

    See LayerContent.

    Esri::ArcGISRuntime::WmsLayerInfo WmsSublayer::sublayerInfo() const

    Returns a WmsLayerInfo object with metadata about this sublayer.

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