java.lang.Object | ||
↳ | com.esri.android.map.Layer | |
↳ | com.esri.android.map.GroupLayer |
Known Direct Subclasses |
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.
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.esri.android.map.Layer
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
GroupLayer()
Creates a GroupLayer.
| |||||||||||
GroupLayer(boolean initLayer)
The Constructor.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
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(String layername)
Tests if the group contains the sublayer with given name.
| ||||||||||
boolean |
hasLayer(int index)
Tests if the group contains the sublayer in the given index.
| ||||||||||
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.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
long | create() | ||||||||||
void | finalize() | ||||||||||
void |
graphicsLayerAddRequest(String layerName, int index)
Callback when a GraphicLayer is added to the GroupLayer in the MessageProcessor.
| ||||||||||
void |
initLayer()
Initializes the layer.
| ||||||||||
void |
setDefaultSpatialReference(SpatialReference defaultSpatialReference)
Sets the defaultSpatialReference of the Layer.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.esri.android.map.Layer
| |||||||||||
From class
java.lang.Object
|
Creates a GroupLayer.
The Constructor.
initLayer | the init layer |
---|
Adds a layer to the current layer group by appending it to the bottom.
layer | the layer |
---|
Inserts a layer object at certain position in the group layer.
layer | a Layer object to be added. |
---|---|
index | an integer of position. |
Adds an array of layers to the current layer group.
layers | an array of layers |
---|
Returns the size of the group layer.
This method is used internally only. The end user will not use it directly.
Gets the defaultSpatialReference of the Layer.
Returns the full extent of the layer. Returns NULL if the group layer is empty.
Returns the layer for the given index position.
index | an integer for layer position. |
---|
Returns the Layer object matching the given ID.
layerId | a long integer. |
---|
Returns the direct sublayers in an array.
Returns all layers for the given layer name.
layername | a layer name string |
---|
Tests if the group contains the sublayer with given name.
layername | a layer name string. |
---|
Tests if the group contains the sublayer in the given index.
index | a layer index. |
---|
The initialization of a GroupLayer is depended upon if it is empty (return false ) or its first layer being initialized.
Releases resources referenced by the Layer so that they can be recycled.
The sublayers are removed and destroyed from the group layers.
Removes the layer in the given index.
index | an integer should be less than current group layer size. |
---|
Remove all layers by for the given name.
layerName | a layer name. |
---|
Sets the opacity of the GroupLayer, it will change all opacity of it sublayers.
opacity | the opacity to set. |
---|
Callback when a GraphicLayer is added to the GroupLayer in the MessageProcessor.
layerName | String |
---|---|
index | integer |
Exception |
---|
Initializes the layer. The implementation should submit the OnStatusChangedListener.STATUS
event accordingly.
Sets the defaultSpatialReference of the Layer.
defaultSpatialReference | The defaultSpatialReference to set. |
---|