AbstractProtectedconstructorConstructs a GeoView base layer to manage an OpenLayer layer, including group layers.
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.
Gets the bounds for the layer in the given projection. When the layer is a GVLayer, its layer bounds are returned. When the layer is a GVGroup, an Extent union of all layers bounds in the group is returned.
The projection to get the bounds into.
The number of stops to use to generate the extent.
A promise of layer bounding box.
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
Gets the layer configuration associated with the layer.
The layer configuration
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.
Gets the OpenLayers Layer
The OpenLayers Layer
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.
The direct parent group layer, or undefined if this layer is not
contained within any group.
Returns the top-most (root) GVGroupLayer ancestor of this layer, if any.
The highest ancestor group layer in the hierarchy, or undefined
if this layer does not belong to any group.
Retrieves all parent group layers of this layer in hierarchical order.
The returned array starts with the immediate parent and continues up the hierarchy until the root group layer is reached or a group has already been visited (not supposed to happen).
An array of parent GVGroupLayer instances, ordered from the immediate parent to the top-most ancestor. Returns an empty array if the layer has no parent.
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.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
Protected AbstractonMust override method to get the layer attributions
The layer attributions
Protected AbstractonMust override method to get the layer bounds
A promise of layer bounding box.
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
Protected AbstractonMust override method to refresh a layer
Optional, the projection to refresh to.
ProtectedonOverridable method to set the opacity of the layer.
If the layer has a parent, the provided opacity is clamped so that it cannot be greater than the parent's opacity. The resulting opacity is applied to the underlying OpenLayers layer.
If the layer is a GVGroupLayer, the computed opacity is recursively applied to all child layers to maintain consistency within the layer hierarchy.
Optionally emits a layer opacity change event.
The desired opacity for the layer, typically between 0 (fully transparent)
and 1 (fully opaque).
Optional, whether to emit a layer opacity changed event after updating the opacity. Defaults to true.
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.
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 while ensuring it does not exceed the opacity of its parent layer.
If the layer has a parent, the provided opacity is clamped so that it cannot be greater than the parent's opacity. The resulting opacity is applied to the underlying OpenLayers layer.
If the layer is a GVGroupLayer, the computed opacity is recursively applied to all child layers to maintain consistency within the layer hierarchy.
Optionally emits a layer opacity change event.
The desired opacity for the layer, typically between 0 (fully transparent)
and 1 (fully opaque).
Optional, whether to emit a layer opacity change event after updating the opacity. Defaults to true.
Sets the parent layer
The parent layer for the current layer if any.
Sets the visibility of the layer (true or false).
The visibility of the layer.
Abstract Base GV Layer managing an OpenLayer layer, including a layer group.