Add feature property changed observable on this group. See setFeaturesProperty.
Add feature selected observable on this group. To call manually on feature selection. See emitSelectFeatures.
an observables that notify addition of layer in this group.
Add features in the target overlay layer. Does nothing with an empty array.
the id of the layer to add features into.
the features to add to the layer.
Add a single layer at the end of the layer group.
Ol layer.
id of the layer.
Remove all layers from the map and clear the layer group.
Every source from layers having sources in the layer group.
The attribution of all visible layers.
id of the layer
The cluster features in the layer or null Do not modify or save cluster features as they are recreated dynamically on each map rendering (move, zoom, etc.). It's not possible to rely on this object.
the id of the layer to add features into.
the last vector source in the corresponding layer or null. Meaning the normal source on the vector layer with VectorSource, and the vector source inside the cluster source for ClusterSource.
id of the layer.
The collections of features in the layer or null. Do not use a collection to add/remove features. It's slow. Use related methods on the source directly.
The extent (not empty) of all features in every overlay in the map.
Retrieve a layer currently in the layer group.
The matching layer or null.
the id of the layer to get the extent from.
The extent (not empty) of all features in the target layer or null.
the layer group of this instance.
Get the vector layer if a vector layer with this layer id exists.
the id of the layer to add features into.
the id of the layer to add features into.
the vector source in the corresponding layer or null. For cluster source, the returned source is the first source (the effective cluster source, and not the vector source inside the cluster source).
Refresh the source of every layer with a source in the layer group.
Remove features from the target overlay layer. Does nothing with an empty array.
the id of the layer to remove features from.
the features to remove to the layer.
Set features in the target overlay layer.
the id of the layer to remove features from.
the features to replace existing ones in the layer.
LayerGroup specialized to manage layers with features (mostly vector layers). Each instance must have a unique name (the default name will be valid for the first group). The default position is 20.