Enum LayerViewStatus
- java.lang.Object
- 
- java.lang.Enum<LayerViewStatus>
- 
- com.esri.arcgisruntime.mapping.view.LayerViewStatus
 
 
- 
- All Implemented Interfaces:
- Serializable,- Comparable<LayerViewStatus>
 
 public enum LayerViewStatus extends Enum<LayerViewStatus> The status of a layer in theGeoView.This status is used to determine if a layer is displaying in a GeoViewor whether it is still loading, not visible, out of scale, or has encountered an error or warning. Each layer can have multiple states at the same time. For example, a layer could be bothNOT_VISIBLEandOUT_OF_SCALEor it could beNOT_VISIBLEandLOADING. These multiple states are represented using a flag enumeration.A status of ACTIVEindicates that the layer is displayed in the view. Note that some of the layer view states are not possible together. For example, a layer cannot be bothACTIVEandNOT_VISIBLEat the same time.If you implement a layer list in a table of contents (TOC), you can use the layer view status to manage the TOC user interface. For example, you could gray out the layer if it is OUT_OF_SCALE, or you could show a spinning icon if the layer isLOADING. If the layer list contains aGroupLayerthat isNOT_VISIBLE, then its child layers will beNOT_VISIBLE. If theGroupLayeris visible, then each child layer can be either visible orNOT_VISIBLE.If the layer completely fails to load or render you will encounter a ERROR. If the layer fails to render some of its content, then you will encounter aWARNING. This could be due to the temporary loss of a network connection, failing layer requests or exceeding the max feature count. In both cases you will find more details about the problem by callingLayerViewStateChangedEvent.getError().- Since:
- 100.0.0
 
- 
- 
Enum Constant SummaryEnum Constants Enum Constant Description ACTIVEThe layer in the view is active.ERRORThe layer in the view has an unrecoverable error.LOADINGThe layer in the view is loading.NOT_VISIBLEThe layer in the view is not visible.OUT_OF_SCALEThe layer in the view is out of scale.WARNINGThe layer in the view has encountered an error which may be temporary.
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static LayerViewStatusvalueOf(String name)Returns the enum constant of this type with the specified name.static LayerViewStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
 
- 
- 
- 
Enum Constant Detail- 
ACTIVEpublic static final LayerViewStatus ACTIVE The layer in the view is active. A status ofACTIVEindicates that the layer is being displayed in the view. This status can be combined withWARNING.- Since:
- 100.0.0
 
 - 
NOT_VISIBLEpublic static final LayerViewStatus NOT_VISIBLE The layer in the view is not visible.- Since:
- 100.0.0
 
 - 
OUT_OF_SCALEpublic static final LayerViewStatus OUT_OF_SCALE The layer in the view is out of scale. A status ofLayerViewStatus.OUT_OF_SCALEindicates that the view is zoomed outside of the scale range of the layer. If the view is zoomed too far in (e.g. to a street level), it is beyond the max scale defined for the layer. If the view has zoomed too far out (e.g. to global scale), it is beyond the min scale defined for the layer.- Since:
- 100.0.0
 
 - 
LOADINGpublic static final LayerViewStatus LOADING The layer in the view is loading. Once loading has completed, the layer will be available for display in the view. If there was a problem loading the layer, the status will be set toERRORand theERRORproperty will provide details on the specific problem.- Since:
- 100.0.0
 
 - 
ERRORpublic static final LayerViewStatus ERROR The layer in the view has an unrecoverable error. When the status isERROR, the layer cannot be rendered in the view. For example, it may have failed to load, be an unsupported layer type, or contain invalid data.The ERRORproperty will provide more details about the specific problem which was encountered. Depending on the type of problem, you could try the following:- Call Layer.retryLoadAsync().
- Remove the layer from the ArcGISMaporArcGISScene.
- Inspect the data.
 - Since:
- 100.0.0
 
- Call 
 - 
WARNINGpublic static final LayerViewStatus WARNING The layer in the view has encountered an error which may be temporary. When the status isWARNING, the layer may still be displayed in the view. It is possible for the status to be bothACTIVEandWARNING.A warning status indicates that the layer has encountered a problem but may still be usable. For example, some tiles or features may be failing to load due to network failure or server error. You should be aware that when a WARNINGis received, the layer may not be showing all data or it may be showing data which is not up-to-date. TheERRORproperty will provide more details about the specific problem which was encountered.Depending on the type of problem, you could: - Check your network connection
- Check whether an online service is experiencing problems
 - Since:
- 100.9.0
 
 
- 
 - 
Method Detail- 
valuespublic static LayerViewStatus[] values() Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (LayerViewStatus c : LayerViewStatus.values()) System.out.println(c); - Returns:
- an array containing the constants of this enum type, in the order they are declared
 
 - 
valueOfpublic static LayerViewStatus valueOf(String name) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
- name- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
- IllegalArgumentException- if this enum type has no constant with the specified name
- NullPointerException- if the argument is null
 
 
- 
 
-