Skip To Content ArcGIS for Developers Sign In Dashboard

GroupLayer Class

(Esri::ArcGISRuntime::GroupLayer)

A Layer that is a container for other layers and group layers. More...

Header: #include <GroupLayer>
Since: Esri::ArcGISRuntime 100.5
Inherits: Layer

Public Functions

GroupLayer(const QList<Layer *> &layers, QObject *parent = nullptr)
~GroupLayer()
bool isShowChildrenInLegend() const
LayerListModel *layers() const
void setShowChildrenInLegend(bool show)

Additional Inherited Members

Detailed Description

A Layer that is a container for other layers and group layers.

A GroupLayer is used to represent datasets that are composed of multiple layers to be managed as a single layer with respect to display and some other operations.

Member Function Documentation

GroupLayer::GroupLayer(const QList<Layer *> &layers, QObject *parent = nullptr)

Constructor.

  • layers - The initial set of child layers to be part of this group's collection of layers.
  • parent - The parent QObject.

GroupLayer::~GroupLayer()

Destructor.

bool GroupLayer::isShowChildrenInLegend() const

Returns whether the child layers of the group layer should be shown in the map legend.

See also setShowChildrenInLegend.

LayerListModel *GroupLayer::layers() const

Gets the list of 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.

  • show - A true value indicates that the child layers should be shown in the map legend. The default value is true.

See also isShowChildrenInLegend.


Feedback on this topic?