LayerViewState QML Type

GeoView."> LayerViewState QML Type | ArcGISQtQml
  • Esri.ArcGISRuntime
  • LayerViewState
  • The state of a layer in a GeoView. More...

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



    Detailed Description

    This object allows you to know the current state of a layer in a view.

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

    Property Documentation

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

    The layer view error that describes a problem encountered when displaying layers in a GeoView.

    For your application, an error may be critical for the user's interaction with the view's data content. Depending on the type of problem encountered, you could:

    • Call retryLoad().
    • Remove the layer from the Map or Scene.
    • Inspect the data.
    • Check your network connection.
    • Check whether an online service is experiencing problems.

    This property was introduced in Esri.ArcGISRuntime 100.14.

    See also LayerViewState.

    [read-only, since Esri.ArcGISRuntime 100.1] statusFlags : Enums.LayerViewStatusFlags

    Returns the combination of Enums.LayerViewStatus enum to describe the current layer view state (read-only).

    A valid layer state is a bitwise OR combination of the LayerViewStatus enum values.

    var stateFlag = layerViewState.statusFlags;
    if (stateFlag & Enums.LayerViewStatusActive)
      return "Active";
    if (stateFlag & Enums.LayerViewStatusNotVisible)
      return "Not Visible";
    if (stateFlag & Enums.LayerViewStatusOutOfScale)
      return "Out of scale";
    if (stateFlag & Enums.LayerViewStatusLoading)
      return "Loading";
    if (stateFlag & Enums.LayerViewStatusError)
      return "Error";
    return "Unknown";

    Note: The return value makes use of the QFlags class. Please see the Qt documentation for more details on usage.

    This property was introduced in Esri.ArcGISRuntime 100.1.

    See also Enums.LayerViewStatus.

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