java.lang.Object
com.esri.arcgisruntime.mapping.view.LayerViewState
The state of a layer in a
GeoView
.
This object allows you to know the current state of a layer in a view.
- Since:
- 100.10.0
- See Also:
-
Method Details
-
getError
Gets the error that describes a problem encountered when displaying layers in aGeoView
.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
Layer.retryLoadAsync()
- Remove the layer from the
ArcGISMap
orArcGISScene
- Inspect the data
- Check your network connection
- Check whether an online service is experiencing problems.
- Returns:
- the error that describes a problem encountered when displaying layers in a
GeoView
, or null if none - Since:
- 100.10.0
- Call
-
getStatus
Gets a set of view states that apply to a layer. This can be used, for example, to report layer status in a map legend or table of contents.Each layer may have more than one view status; for example, a layer may be
LOADING
, and thereforeNOT_VISIBLE
, or may beNOT_VISIBLE
because it is currentlyOUT_OF_SCALE
. If the layer isACTIVE
, this can be combined withLayerViewStatus.WARNING
. For child layers of group layers, the parent layers status is taken into account.- Returns:
- the layer view status(es) which apply to the given layer
- Since:
- 100.10.0
-