ArcGISSublayer QML Type

  • Esri.ArcGISRuntime
  • ArcGISSublayer
  • An ArcGIS sublayer. More...

    Import Statement: import Esri.ArcGISRuntime
    Since: Esri.ArcGISRuntime 100.0
    Inherits:

    LayerContent

    Inherited By:

    ArcGISMapImageSublayer, ArcGISTiledSublayer, and SubtypeSublayer

    Properties

    Signals

    Methods

    Detailed Description

    This is a base class for ArcGISMapImageSublayer and ArcGISTiledSublayer. You can get a collection of handles from another sublayer by using sublayers.

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

    See also Cancelable, LayerContent, Loadable, PopupSource, ArcGISMapImageSublayer, ArcGISTiledSublayer, and sublayers.

    Property Documentation

    autoFetchLegendInfos : bool

    See also LayerContent.


    [read-only] canChangeVisibility : bool

    See also LayerContent.


    [read-only, since Esri.ArcGISRuntime 100.1] definitionExpression : string

    Returns the sublayer's definition expression (read-only).

    The definition expression string uses the SQL-92 where clause syntax (https://en.wikipedia.org/wiki/SQL-92). Be sure to escape special characters in the expression string as required for your platform. The DATE keyword expects the date format yyyy-mm-dd and the TIMESTAMP keyword expects the time stamp format yyyy-mm-dd hh:mm:ss. See the ArcGIS Blog article entitled "Querying Feature Services Date-Time Queries" (https://www.esri.com/arcgis-blog/products/api-rest/data-management/querying-feature-services-date-time-queries/) for more information.

    The definition expression string uses the SQL-92 WHERE clause syntax. Be sure to escape special characters in the expression string as required for your platform. The DATE keyword expects the date format yyyy-mm-dd and the TIMESTAMP keyword expects the time stamp format yyyy-mm-dd hh:mm:ss. See the ArcGIS Blog article Querying Feature Services Date-Time Queries for more information.

    This property was introduced in Esri.ArcGISRuntime 100.1.


    [read-only, since Esri.ArcGISRuntime 100.1] error : Error

    Returns the error object (read-only).

    This property was introduced in Esri.ArcGISRuntime 100.1.

    See also Loadable and Error.


    [read-only, since Esri.ArcGISRuntime 100.1] labelsEnabled : bool

    Returns whether the sublayer's labels are enabled (read-only).

    This property was introduced in Esri.ArcGISRuntime 100.1.


    [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, since Esri.ArcGISRuntime 100.1] loadError : Error

    Returns the load error (read-only).

    Note: load errors are also reported on the error property and emit the errorChanged signal.

    This property was introduced in Esri.ArcGISRuntime 100.1.

    See also Loadable.


    [read-only, since Esri.ArcGISRuntime 100.1] loadStatus : Enums.LoadStatus

    The Enums.LoadStatus of the Layer.

    This property was introduced in Esri.ArcGISRuntime 100.1.

    See also Loadable and Enums.LoadStatus.


    [read-only, since Esri.ArcGISRuntime 100.1] mapServiceSublayerInfo : ArcGISMapServiceSublayerInfo

    Returns the sublayer metadata after the sublayer is loaded (read-only).

    Will return a null object if an error occurs or if the sublayer is not loaded.

    This property was introduced in Esri.ArcGISRuntime 100.1.


    [read-only] maxScale : double

    Returns the maximum scale at which the sublayer displays (read-only).


    [read-only] minScale : double

    Returns the minimum scale at which the sublayer displays (read-only).


    [read-only, since Esri.ArcGISRuntime 100.1] opacity : real

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

    This property was introduced in Esri.ArcGISRuntime 100.1.


    popupDefinition : PopupDefinition

    Returns the pop-up definition.

    The PopupDefinition associated with the popup source. A nullptr if an error occurs or if the popup source is not associated with a pop-up definition.

    See also PopupSource.


    popupEnabled : bool

    Returns a flag indicating whether the PopupDefinition defined on the PopupSource is enable / disable.

    Will return false if an error occurs.

    See also PopupSource.


    [read-only, since Esri.ArcGISRuntime 100.1] renderer : Renderer

    Returns the renderer specifying how the features should be symbolized (read-only).

    This property was introduced in Esri.ArcGISRuntime 100.1.


    [read-only, since Esri.ArcGISRuntime 100.1] scaleSymbols : bool

    Returns whether the sublayer renders its symbols based on scale (read-only).

    A value of false means the symbols stay the same size in screen units regardless of the map scale.

    The default value is false.

    This property was introduced in Esri.ArcGISRuntime 100.1.


    showInLegend : bool

    See also LayerContent.


    [read-only] subLayerContents : list<LayerContent>

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

    See also LayerContent.


    [read-only, since Esri.ArcGISRuntime 100.1] sublayerId : string

    Returns the sublayer ID (read-only).

    Note: The underlying property is represented as a 64-bit integer type. See Accessing 64-bit integer properties from QML.

    This property was introduced in Esri.ArcGISRuntime 100.1.

    See also sublayerIdAsInt.


    [read-only, since Esri.ArcGISRuntime 100.3] sublayerIdAsInt : int

    The same as sublayerId but represented as an integer type (read-only).

    Note: The underlying property is represented as a 64-bit integer type. See Accessing 64-bit integer properties from QML.

    This property was introduced in Esri.ArcGISRuntime 100.3.


    [read-only] sublayerType : Enums.ArcGISSublayerType

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

    A sublayer may be an image sublayer or a tiled sublayer, or the type may be unknown.

    See also Enums.ArcGISSublayerType.


    [read-only] sublayers : ArcGISSublayerListModel

    The sublayers of a sublayer.

    The collection is specific to a layer so you can't reuse a sublayer collection coming from another ArcGISMapImageLayer or ArcGISSublayer.

    See also ArcGISMapImageLayer::mapImageSublayers.


    visible : bool

    See also LayerContent.


    Signal Documentation

    autoFetchLegendInfosChanged()

    emitted when the autoFetchLegendInfos property changes.

    Note: The corresponding handler is onAutoFetchLegendInfosChanged.

    See also LayerContent.


    [since Esri.ArcGISRuntime 100.1] definitionExpressionChanged()

    Emitted when the definitionExpression property changes.

    Note: The corresponding handler is onDefinitionExpressionChanged.

    This signal was introduced in Esri.ArcGISRuntime 100.1.


    [since Esri.ArcGISRuntime 100.1] labelsEnabledChanged()

    Emitted when the labelsEnabled property changes.

    Note: The corresponding handler is onLabelsEnabledChanged.

    This signal was introduced in Esri.ArcGISRuntime 100.1.


    [since Esri.ArcGISRuntime 100.1] loadErrorChanged()

    Emitted when the loadError property of this ArcGISSublayer changes.

    Note: load errors are also reported on the error property and emit the errorChanged signal.

    Note: The corresponding handler is onLoadErrorChanged.

    This signal was introduced in Esri.ArcGISRuntime 100.1.

    See also Loadable and Object.


    [since Esri.ArcGISRuntime 100.1] loadStatusChanged()

    Emitted when the loadStatus property changes.

    Note: The corresponding handler is onLoadStatusChanged.

    This signal was introduced in Esri.ArcGISRuntime 100.1.

    See also Loadable.


    [since Esri.ArcGISRuntime 100.1] mapServiceSublayerInfoChanged()

    Emitted when the mapServiceSublayerInfo property changes.

    Note: The corresponding handler is onMapServiceSublayerInfoChanged.

    This signal was introduced in Esri.ArcGISRuntime 100.1.


    [since Esri.ArcGISRuntime 100.1] maxScaleChanged()

    Emitted when the maxScale property changes.

    Note: The corresponding handler is onMaxScaleChanged.

    This signal was introduced in Esri.ArcGISRuntime 100.1.


    [since Esri.ArcGISRuntime 100.1] minScaleChanged()

    Emitted when the minScale property changes.

    Note: The corresponding handler is onMinScaleChanged.

    This signal was introduced in Esri.ArcGISRuntime 100.1.


    [since Esri.ArcGISRuntime 100.1] opacityChanged()

    Emitted when the opacity property changes.

    Note: The corresponding handler is onOpacityChanged.

    This signal was introduced in Esri.ArcGISRuntime 100.1.


    popupDefinitionChanged()

    Emitted when the popupDefinition property changes.

    Note: The corresponding handler is onPopupDefinitionChanged.


    popupEnabledChanged()

    Emitted when the popupEnabled property changes.

    Note: The corresponding handler is onPopupEnabledChanged.


    [since Esri.ArcGISRuntime 100.1] rendererChanged()

    Emitted when the renderer property changes.

    Note: The corresponding handler is onRendererChanged.

    This signal was introduced in Esri.ArcGISRuntime 100.1.


    [since Esri.ArcGISRuntime 100.1] scaleSymbolsChanged()

    Emitted when the scaleSymbols property changes.

    Note: The corresponding handler is onScaleSymbolsChanged.

    This signal was introduced in Esri.ArcGISRuntime 100.1.


    showInLegendChanged()

    emitted when the showInLegend property changes.

    Note: The corresponding handler is onShowInLegendChanged.

    See also LayerContent.


    [since Esri.ArcGISRuntime 100.3] sublayerIdAsIntChanged()

    Emitted when the sublayerIdAsInt property changes.

    Note: The corresponding handler is onSublayerIdAsIntChanged.

    This signal was introduced in Esri.ArcGISRuntime 100.3.


    [since Esri.ArcGISRuntime 100.1] sublayerIdChanged()

    Emitted when the sublayerId property changes.

    Note: The corresponding handler is onSublayerIdChanged.

    This signal was introduced in Esri.ArcGISRuntime 100.1.


    visibleChanged()

    Emitted when the visible property changes.

    Note: The corresponding handler is onVisibleChanged.

    See also LayerContent.


    Method Documentation

    [since Esri.ArcGISRuntime 100.1] void cancelLoad()

    This method was introduced in Esri.ArcGISRuntime 100.1.

    See also Loadable.


    [since Esri.ArcGISRuntime 200.1] ArcGISSublayer clone()

    Creates a deep copy of this object.

    This method was introduced in Esri.ArcGISRuntime 200.1.


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

    Compares two sublayers for equality.

    Returns whether this instance and other are equivalent.

    This method was introduced in Esri.ArcGISRuntime 200.1.


    bool isVisibleAtScale(double scale)

    Returns the layer content's effective visibility at the specified scale.

    • scale - The scale the visibility has to be calculated for.

    Returns the effective layer content visibility. This effective visibility takes care of the effective visibility of the parents at the specified scale. Will return false if an error occurs.

    See LayerContent.


    [since Esri.ArcGISRuntime 100.1] void load()

    This method was introduced in Esri.ArcGISRuntime 100.1.

    See also Loadable.


    [since Esri.ArcGISRuntime 100.1] void retryLoad()

    Loads or retries loading metadata for the object asynchronously.

    Will retry loading the metadata if the object is failed to load. Will load the object if it is not loaded. Will not retry to load the object if the object is loaded. Will always call the done loading if this is called.

    See Loadable.

    This method was introduced in Esri.ArcGISRuntime 100.1.


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