A sublayer of a WMS Layer. More...
| Header | #include <Wms |
| Since | Esri |
| Inherits | Esri |
This class was introduced in Esri::ArcGISRuntime 100.2.
Public Functions
| virtual | ~ |
| QString | current |
| void | set |
| Esri | sublayer |
Reimplemented Public Functions
| virtual bool | can |
| virtual bool | is |
| virtual bool | is |
| virtual bool | is |
| virtual bool | is |
| virtual Esri | legend |
| virtual QString | name() const override |
| virtual void | set |
| virtual void | set |
| virtual void | set |
| virtual QList | sub |
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 ¤tStyle )
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.