|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.android.map.ags.ArcGISLayerInfo
public class ArcGISLayerInfo
While working with the ArcGISDynamicMapServiceLayer and ArcGISTiledMapServiceLayer 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 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. |
|
ArcGISLayerInfo(String name,
int id,
ArcGISLayerInfo parent)
Instantiates an object of ArcGISLayerInfo. |
Method Summary | |
---|---|
int |
getId()
Returns the Id of the layer. |
ArcGISLayerInfo[] |
getLayers()
If the layer is a group layer, then this method returns the immediate sub-layers of the group layer; |
double |
getMaxScale()
Gets the maxScale of the ArcGISLayerInfo. |
double |
getMinScale()
Gets the minScale of the ArcGISLayerInfo. |
String |
getName()
Returns the name of the layer. |
ArcGISLayerInfo |
getParentLayer()
Gets the parent layer. |
boolean |
isVisible()
Returns true if the layer is set to visible; false otherwise. |
void |
setVisible(boolean visible)
Update the visibility of a layer. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ArcGISLayerInfo(String name, int id)
name
- the name of the layerid
- the index of the layer.public ArcGISLayerInfo(String name, int id, ArcGISLayerInfo parent)
name
- the name of the layerid
- the index of the layer.Method Detail |
---|
public ArcGISLayerInfo[] getLayers()
public boolean isVisible()
public void setVisible(boolean visible)
visible
- the Boolean value for layer visibility.public String getName()
public int getId()
public ArcGISLayerInfo getParentLayer()
public double getMinScale()
public double getMaxScale()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |