public class LayerGroup extends ILayer
| Constructor and Description |
|---|
LayerGroup(ILayer[] layers)
Creates a layer group from an array of layers
|
| Modifier and Type | Method and Description |
|---|---|
LayerGroup |
addLayer(ILayer layer)
Adds a given layer to the group.
|
LayerGroup |
addTo(Map map)
Adds the group of layers to the map.
|
LayerGroup |
clearLayers()
Removes all the layers from the group.
|
ILayer[] |
getLayers()
Returns all layers in the group
|
boolean |
hasLayer(ILayer layer)
Returns
true if the given layer is currently added to the
group. |
LayerGroup |
removeLayer(ILayer layer)
Removes a given layer from the group.
|
LayerGroup |
removeLayer(String layerId)
Removes a given layer of the given id from the group.
|
public LayerGroup(ILayer[] layers)
layers - array of layerspublic LayerGroup addTo(Map map)
map - The mappublic LayerGroup addLayer(ILayer layer)
layer - The layer to addpublic LayerGroup removeLayer(ILayer layer)
layer - The layer to removepublic LayerGroup removeLayer(String layerId)
layerId - The layer id of the layer to removepublic boolean hasLayer(ILayer layer)
true if the given layer is currently added to the
group.layer - layer to check whether in grouptrue if the given layer is currently added to the
grouppublic ILayer[] getLayers()
public LayerGroup clearLayers()
Copyright © 2017. All rights reserved.