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.
Fires an "affected" layer event.
Fires a "LayerPropertyChanged" and call a "changed" event on the matching OL layer.
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.
Set a property of every given feature with the same value. If you want to set different values, set the feature manually (with silent=true), then call dispatchFeaturePropertyChanged to redraw the ol layer and fires a featuresPropertyChanged event. Or call featuresPropertyChange manually if necessary.
Set a property of a layer and fires a "LayerPropertyChanged" event if the value has changed.
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.