Readonly
attributesAdditional attributes associated with this layer.
Readonly
childrenReadonly
descriptionThe human-readable description of this layer. May be empty.
Readonly
idThe unique id of this layer within its map model.
NOTE: layer ids may not be globally unique: layers that belong to different map models may have the same id.
Readonly
isTrue if this layer is a base layer.
Only one base layer can be visible at a time.
Readonly
layersLayers contained in this group.
Readonly
legendLegend URL from the service capabilities, if available.
Note: this property may be expanded upon in the future, e.g. to support more variants than just image URLs.
Readonly
loadThe load state of a layer.
Readonly
mapThe map this layer belongs to.
Readonly
olRaw OpenLayers group instance.
Warning: Do not manipulate the collection of layers in this group directly, changes are not synchronized!
Readonly
parentThe direct parent of this layer instance, used for sublayers or for layers in a group layer.
The property shall be undefined if the layer is not a sublayer or member of a group layer.
Readonly
sublayersThe collection of child sublayers for this layer. Sublayers are layers that cannot exist without an appropriate parent layer.
Layers that can never have any sublayers may not have a sublayers
collection.
The properties layers
and sublayers
are mutually exclusive.
Readonly
titleThe human-readable title of this layer.
Readonly
typeIdentifies the type of this layer.
Readonly
visibleWhether the layer is visible or not.
NOTE: The model's visible state may do more than influence the raw OpenLayers's visibility property. Future versions may completely remove invisible layers from the OpenLayer's map under some circumstances.
Deletes the attribute of this layer.
Updates the description of this layer.
Updates the title of this layer.
Updates the visibility of this layer to the new value.
NOTE: The visibility of base layers cannot be changed through this method. Call LayerCollection.activateBaseLayer instead.
Updates the attributes of this layer.
Values in newAttributes
are merged into the existing ones (i.e. via Object.assign
).
Represents a group of layers.
A group layer contains a collection of Layer children. Groups can be nested to form a hierarchy.