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
collectionoflayersin this group.Returns:
Collection oflayersthat are part of this group.
-
setLayers(layers)
layer/Group.js, line 183 -
Set the
collectionoflayersin this group.Name Type Description layersmodule:ol/Collection~Collection.<module:ol/layer/Base~BaseLayer> Collection of
layersthat are part of this group.
OpenLayers