A layer that is a container for other layers and group layers. More...
Public Functions Detailed DescriptionA GroupLayer is used to represent datasets that are composed of multiple layers to be managed as a single layer with respect to display in a map or scene.
Group layers are designed for presentation of operational layers that are related by a theme. You can add several related operational child layers into a group layer so the layers can be displayed together. Suppose there are several feature layers that represent existing infrastructure projects (buildings, sidewalks, roads, and trees). You can add these feature layers into a single group layer called "Existing". Similarly assume there are also proposed infrastructure projects that are features in other layers. These layers can be added to a group layer called "Planned". You can manage the visibility of the existing or planned features as separate groups.
For the most part, group layers behave like any other layer in that:
The full extent of a group layer is derived asynchronously based on what information is available from the child layers. This means the full extent can change when child layers are added or removed. The full extent geometry will have the spatial reference of the first loaded child layer.
The visual opacity property of the group layer affects the opacity of the child layers. The opacity of the child layers is a mathematical product of the individual child layer's opacity and the group layer's opacity. Opacity values range from 0.0 (transparent) to 1.0 (opaque). This means that setting the opacity of the group layer to 0.0 will make all child layers transparent [0 * AnyNumber = 0]. Likewise when the group layer opacity is 1.0, will set the opacity of the child layers to their individual layer opacity [1 * AnyNumber = AnyNumber].
Relevant samples:
[explicit]
GroupLayer::GroupLayer(const QList<Esri::ArcGISRuntime::Layer *> &layers, QObject *parent = nullptr)
Creates a group layer object with child layers.
See also layers.
[override virtual noexcept]
GroupLayer::~GroupLayer()
Destructor.
bool GroupLayer::isShowChildrenInLegend() constDetermines and returns true
if the child layers should be shown in the map legend.
See also setShowChildrenInLegend.
Esri::ArcGISRuntime::LayerListModel *GroupLayer::layers() constGets the list of child layers.
Changing the contents of this model will also change the contents of the group layer.
void GroupLayer::setShowChildrenInLegend(bool show)Sets whether the child layers of the group layer should be shown in the map legend.
true
value indicates that the child layers should be shown in the map legend. The default value is true
.See also isShowChildrenInLegend.
[since Esri::ArcGISRuntime 100.9]
void GroupLayer::setVisibilityMode(Esri::ArcGISRuntime::GroupVisibilityMode mode)
Sets the mode on indicating how the participating layers within a GroupLayer should be displayed in a table of contents.
The default is GroupVisibilityMode::Independent.
This function was introduced in Esri::ArcGISRuntime 100.9.
See also visibilityMode().
[since Esri::ArcGISRuntime 100.9]
Esri::ArcGISRuntime::GroupVisibilityMode GroupLayer::visibilityMode() const
Returns the mode indicating how the participating layers within a GroupLayer are displayed in a table of contents.
The default value is GroupVisibilityMode::Independent.
This function was introduced in Esri::ArcGISRuntime 100.9.
See also setVisibilityMode().
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4