|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.esri.android.map.Layer
com.esri.android.map.GroupLayer
public class GroupLayer
A group layer is a collection of layers extending from the Layer class. it can appear and act as a single layer and has a Layer object's properties such as visibility, extent etc.
If the group layer is the map's first layer, the map will be initialized by the first layer of group layer.
Constructor Summary | |
---|---|
GroupLayer()
Creates a GroupLayer |
Method Summary | |
---|---|
int |
addLayer(Layer layer)
Adds a layer to the current layer group by appending it to the bottom. |
boolean |
addLayer(Layer layer,
int index)
Inserts a layer object at certain position in the group layer. |
void |
addLayers(Layer[] layers)
Adds an array of layers to the current layer group. |
int |
count()
Returns the size of the group layer. |
long |
getAddGraphicsLayerRequestCallbackHandle()
This method is used internally only. |
SpatialReference |
getDefaultSpatialReference()
Gets the defaultSpatialReference of the Layer. |
Envelope |
getFullExtent()
Returns the full extent of the layer. |
Layer |
getLayer(int index)
Returns the layer for the given index position. |
Layer |
getLayerByID(long layerId)
Returns the Layer object matching the given ID. |
Layer[] |
getLayers()
Returns the direct sublayers in an array. |
Layer[] |
getLayers(String layername)
Returns all layers for the given layer name. |
boolean |
hasLayer(int index)
Tests if the group contains the sublayer in the given index. |
boolean |
hasLayer(String layername)
Tests if the group contains the sublayer with given name. |
boolean |
isInitialized()
The initialization of a GroupLayer is depended upon if it is empty (return false ) or its first layer being initialized. |
void |
recycle()
Releases resources referenced by the Layer so that they can be recycled. |
void |
removeAll()
The sublayers are removed and destroyed from the group layers. |
void |
removeLayer(int index)
Removes the layer in the given index. |
void |
removeLayers(String layerName)
Remove all layers by for the given name. |
void |
setOpacity(float opacity)
Sets the opacity of the GroupLayer, it will change all opacity of it sublayers. |
Methods inherited from class com.esri.android.map.Layer |
---|
getCredentials, getExtent, getHeight, getID, getName, getOpacity, getPopupInfo, getResolution, getSpatialReference, getTitle, getUrl, getUrlHashCode, getWidth, isRecycled, isVisible, isWebMapBaselayer, reinitializeLayer, setName, setOnStatusChangedListener, setPopupInfos, setVisible |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GroupLayer()
Method Detail |
---|
public boolean isInitialized()
isInitialized
in class Layer
public Layer[] getLayers()
public Layer[] getLayers(String layername)
layername
- a layer name string
public Layer getLayerByID(long layerId)
layerId
- a long integer.
public Layer getLayer(int index)
index
- an integer for layer position.
public int addLayer(Layer layer)
layer
-
public boolean addLayer(Layer layer, int index)
layer
- a Layer object to be added.index
- an integer of position.
public void addLayers(Layer[] layers)
layers
- an array of layerspublic void removeAll()
public boolean hasLayer(String layername)
layername
- a layer name string.
public boolean hasLayer(int index)
index
- a layer index.
public void removeLayer(int index)
index
- an integer should be less than current group layer size.public void removeLayers(String layerName)
layerName
- a layer name.public int count()
public Envelope getFullExtent()
getFullExtent
in class Layer
public SpatialReference getDefaultSpatialReference()
getDefaultSpatialReference
in class Layer
public void recycle()
Layer
recycle
in class Layer
public void setOpacity(float opacity)
setOpacity
in class Layer
opacity
- the opacity to set.public long getAddGraphicsLayerRequestCallbackHandle()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |