Skip To Content ArcGIS for Developers Sign In Dashboard

LayerViewState QML Type

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

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

loadError : Error

Returns the load error object (read-only).

See also Error.


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 QML property was introduced in Esri.ArcGISRuntime 100.1.

See also Enums.LayerViewStatus.



Feedback on this topic?