WmsSublayer QML Type

  • Esri.ArcGISRuntime
  • WmsSublayer
  • A sublayer of a Layer. More...

    Import Statement: import Esri.ArcGISRuntime
    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 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.

    [read-only] 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.

    [read-only] legendInfos : LegendInfoListModel

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

    See also LayerContent.

    [read-only] 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.

    [read-only] subLayerContents : list<LayerContent>

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

    See also LayerContent.

    [read-only] 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

    [since Esri.ArcGISRuntime 100.3] currentStyleChanged()

    Emitted when the currentStyle property changes.

    Note: The corresponding handler is onCurrentStyleChanged.

    This signal was introduced in Esri.ArcGISRuntime 100.3.

    Method Documentation

    [since Esri.ArcGISRuntime 200.1] WmsSublayer clone()

    Creates a deep copy of this object.

    This method was introduced in Esri.ArcGISRuntime 200.1.

    [since Esri.ArcGISRuntime 200.1] bool equals(WmsSublayer other)

    Compares two WmsSublayers for equality.

    Returns whether this instance and other are equivalent.

    This method was introduced in Esri.ArcGISRuntime 200.1.

    bool isVisibleAtScale(double scale)

    Returns true if the sublayer is visible at a given scale.

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