LayerViewState QML Type

A helper type that provides information about the state of a layer. More...

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

Object

Properties

Detailed Description

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

Property Documentation

error : Error

The layer view error from the layer view state (read-only).

This property was introduced in Esri.ArcGISRuntime 100.14.

See also LayerViewState.


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.