Constructs a Group layer to manage an OpenLayer Group Layer.
The OpenLayer group layer.
The layer configuration.
Indicates if the layer has become in loaded status at least once already
Gets the attributions for the layer by calling the overridable function 'onGetAttributions'. When the layer is a GVLayer, its layer attributions are returned. When the layer is a GVGroup, all layers attributions in the group are returned.
The layer attributions.
A quick getter to help identify which layer class the current instance is coming from.
Returns the extent of the layer or undefined if it will be visible regardless of extent. The layer extent is an array of numbers representing an extent: [minx, miny, maxx, maxy]. The extent is used to clip the data displayed on the map.
The layer extent.
Gets the Geoview layer id.
The geoview layer id
Gets the geoview layer name.
The layer name
Overrides the parent class's getter to provide a more specific return type (covariant return).
The strongly-typed layer configuration specific to this group layer.
Gets the layer name or falls back on the layer name in the layer configuration.
The layer name
Gets the layer path associated with the layer.
The layer path
Gets the layer status
The layer status
Gets the max zoom of the layer.
The max zoom of the layer.
Gets the min zoom of the layer.
The min zoom of the layer.
Overrides the parent method to return a more specific OpenLayers layer type (covariant return).
The strongly-typed OpenLayers type.
Gets the opacity of the layer (between 0 and 1).
The opacity of the layer.
Returns the direct parent GVGroupLayer of this layer, if any. This method searches the provided root group layer collection to locate the group that directly contains this layer. If the layer is nested inside multiple groups, only the immediate parent group is returned.
The root-level group layers to search through when looking for this layer's parent.
The direct parent group layer, or
undefined if this layer is not a child of any group.
Gets the visibility of the layer (true or false).
The visibility of the layer.
Determines whether this layer is visible, taking into account the visibility of all its parent groups. A layer is considered visible only if:
false immediately if any parent is not visible.The top-level group layers from which the layer hierarchy is searched. This must represent the root collection of the layer tree.
true if this layer and all its parent groups are visible;
otherwise false.
Checks if layer is visible at the given zoom
Zoom level to be compared
If the layer is visible at this zoom level
Unregisters a layer name changed event handler.
The callback to stop being called whenever the event is emitted
Unregisters an opacity changed event handler.
The callback to stop being called whenever the event is emitted
Unregisters a visible changed event handler.
The callback to stop being called whenever the event is emitted
Overrides the way the attributions are retrieved.
The layer attributions.
Registers a layer name changed event handler.
The callback to be executed whenever the event is emitted
Registers an opacity changed event handler.
The callback to be executed whenever the event is emitted
Overrides the refresh function to refresh each layer in the group.
Optional, the projection to refresh to.
Registers a visible changed event handler.
The callback to be executed whenever the event is emitted
Refreshes the layer by calling the overridable function 'onRefresh'. When the layer is a GVLayer its layer source is refreshed. When the layer is a GVGroup, all layers in the group are refreshed.
Optional, the projection to refresh to.
Removes a layer from the group layer.
The layer to remove.
Sets the extent of the layer. Use undefined if it will be visible regardless of extent. The layer extent is an array of numbers representing an extent: [minx, miny, maxx, maxy].
The extent to assign to the layer.
Sets the layer name
The layer name
Sets the max zoom of the layer.
The max zoom of the layer.
Sets the min zoom of the layer.
The min zoom of the layer.
ProtectedsetSets the OpenLayers Layer
The OpenLayers Layer
Sets the opacity of the layer (between 0 and 1).
The opacity of the layer.
Whether to emit the event or not (false to avoid updating the legend layers)
Sets the visibility of the layer (true or false).
The visibility of the layer.
Manages a Group Layer.
Exports
GVGroupLayer