|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.esri.android.map.ags.ArcGISLayerInfo
public class ArcGISLayerInfo
While working with the ArcGISDynamicMapServiceLayer class, it is possible for you to access the individual layers contained within the dynamic map service through the getLayers() method. These individual layer objects are represented using this ArcGISLayerInfo class.
The ArcGISLayerInfo class specifies the properties for a given layer that is retrieved from the dynamic map service. For each layer, you can retrieve a layer's id, name, and check to see if the layer is visible or not.
In addition, you can get a list of sub-layers if the layer actually represents a group layer and set its visibility. You should never need to instantiate an object of this class and will only receive instances by calling the getLayers() method of the ArcGISDynamicMapServieLayer.
| Constructor Summary | |
|---|---|
ArcGISLayerInfo(String name,
int id)
Instantiates an object of ArcGISLayerInfo. |
|
| Method Summary | |
|---|---|
int |
getId()
Returns the Id of the layer. |
List<ArcGISLayerInfo> |
getLayers()
If the layer is a group layer, then this method returns all the sub-layers of the group layer; otherwise, just the single layer is returned. |
String |
getName()
Returns the name of the layer. |
boolean |
isVisible()
Returns true if the layer is set to visible; false otherwise. |
void |
setVisible(boolean visible)
Update the visibility of a layer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ArcGISLayerInfo(String name,
int id)
name - the name of the layerid - the index of the layer.| Method Detail |
|---|
public List<ArcGISLayerInfo> getLayers()
public boolean isVisible()
public void setVisible(boolean visible)
visible - the Boolean value for layer visibility.public String getName()
public int getId()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||