new LayerGroup(opt_options)
layer/Group.js, line 51
Name | Type | Description | ||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Layer options.
|
Methods
-
getLayers(){module:ol/Collection~Collection.<module:ol/layer/Base~BaseLayer>}
layer/Group.js, line 169 -
Returns the
collection
oflayers
in this group.Returns:
Collection oflayers
that are part of this group.
-
setLayers(layers)
layer/Group.js, line 183 -
Set the
collection
oflayers
in this group.Name Type Description layers
module:ol/Collection~Collection.<module:ol/layer/Base~BaseLayer> Collection of
layers
that are part of this group.