Skip To Content ArcGIS for Developers Sign In Dashboard

WmsSublayer QML Type

A sublayer of a Layer. More...

Import Statement: import Esri.ArcGISRuntime 100.8
Since: Esri.ArcGISRuntime 100.2





Detailed Description

Note: You cannot declare or create a component of this type in QML code.

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

See also LayerContent.

Property Documentation

autoFetchLegendInfos : bool

Returns whether legend infos are automatically fetched by the sublayer.

See also LayerContent.

canChangeVisibility : bool

Returns whether the sublayer's visibility can be changed (read-only).

See also LayerContent.

currentStyle : string

Returns the sublayer's current style.

Set to an empty string to use the default style.

legendInfos : LegendInfoListModel

Returns a list model containing legend infos for the sublayer and any nested sublayers (read-only).

See also LayerContent.

name : string

Returns the sublayer's name (read-only).

See also LayerContent.

showInLegend : bool

Whether the sublayer will be shown in the legend.

See also LayerContent.

subLayerContents : list<LayerContent>

Returns a list of layer contents for any sublayer (read-only).

See also LayerContent.

sublayerInfo : WmsLayerInfo

Returns a WmsLayerInfo object with metadata about this sublayer. (read-only).

visible : bool

The visiblity of the subLayer.

See also LayerContent.

Signal Documentation


Emitted when the currentStyle property changes.

This QML signal was introduced in Esri.ArcGISRuntime 100.3.

Method Documentation

bool isVisibleAtScale(double scale)

Whether the sublayer is visible at a given scale.

Feedback on this topic?