Skip To Content ArcGIS for Developers Sign In Dashboard

ArcGISMapImageSublayer Class

(Esri::ArcGISRuntime::ArcGISMapImageSublayer)

A sublayer of an ArcGISMapImageLayer. More...

Header: #include <ArcGISMapImageSublayer>
Since: Esri::ArcGISRuntime 100.0
Inherits: ArcGISSublayer

Public Functions

ArcGISMapImageSublayer(qint64 id, QObject *parent = nullptr)
ArcGISMapImageSublayer(qint64 id, SublayerSource *sublayerSource, QObject *parent = nullptr)
~ArcGISMapImageSublayer()
bool isDefaultVisible() const
LabelDefinitionListModel *labelDefinitions() const
void setDefinitionExpression(const QString &definitionExpression)
void setLabelsEnabled(bool labelsEnabled)
void setMaxScale(double maxScale)
void setMinScale(double minScale)
void setName(const QString &name)
void setOpacity(float opacity)
void setRenderer(Renderer *renderer)
void setScaleSymbols(bool scaleSymbols)
SublayerSource *source() const
ServiceFeatureTable *table() const

Additional Inherited Members

Detailed Description

A sublayer of an ArcGISMapImageLayer.

An ArcGISMapImageLayer is created from a dynamic map service that contains one or more sublayers. Sublayers can be accessed from the ArcGISMapImageLayer as ArcGISMapImageSublayers.

The sublayer ID is the index number of the map layer that is listed in the ArcGIS REST Services Directory documentation for the service.

Member Function Documentation

ArcGISMapImageSublayer::ArcGISMapImageSublayer(qint64 id, QObject *parent = nullptr)

Constructor that accepts a sublayer ID.

  • id - The sublayer ID.
  • parent - The optional parent object. Defaults to nullptr.

ArcGISMapImageSublayer::ArcGISMapImageSublayer(qint64 id, SublayerSource *sublayerSource, QObject *parent = nullptr)

Constructor that accepts a sublayer ID and a sublayer source.

  • id - The sublayer ID.
  • sublayerSource - The sublayer source. (Can be set only when instantiating.)
  • parent - The optional parent object. Defaults to nullptr.

ArcGISMapImageSublayer::~ArcGISMapImageSublayer()

Destructor.

bool ArcGISMapImageSublayer::isDefaultVisible() const

Returns whether the sublayer is visible by default.

LabelDefinitionListModel *ArcGISMapImageSublayer::labelDefinitions() const

Returns the list model of label definitions in the layer.

This function was introduced in Esri::ArcGISRuntime 100.1.

void ArcGISMapImageSublayer::setDefinitionExpression(const QString &definitionExpression)

Sets the sublayer's definition expression to definitionExpression.

This function was introduced in Esri::ArcGISRuntime 100.1.

void ArcGISMapImageSublayer::setLabelsEnabled(bool labelsEnabled)

Sets whether the sublayer's labels are displayed to labelsEnabled.

This function was introduced in Esri::ArcGISRuntime 100.1.

void ArcGISMapImageSublayer::setMaxScale(double maxScale)

Sets the maximum scale at which the sublayer displays to maxScale.

This function was introduced in Esri::ArcGISRuntime 100.1.

void ArcGISMapImageSublayer::setMinScale(double minScale)

Sets the minimum scale at which the sublayer displays to minScale.

This function was introduced in Esri::ArcGISRuntime 100.1.

void ArcGISMapImageSublayer::setName(const QString &name)

Sets the name of the sublayer to name.

void ArcGISMapImageSublayer::setOpacity(float opacity)

Sets the sublayer's opacity to opacity.

This function was introduced in Esri::ArcGISRuntime 100.1.

void ArcGISMapImageSublayer::setRenderer(Renderer *renderer)

Sets the renderer that specifies how the features should be symbolized to renderer.

This function was introduced in Esri::ArcGISRuntime 100.1.

void ArcGISMapImageSublayer::setScaleSymbols(bool scaleSymbols)

Sets whether the sublayer renders its symbols based on scale to scaleSymbols.

This function was introduced in Esri::ArcGISRuntime 100.1.

SublayerSource *ArcGISMapImageSublayer::source() const

Returns the sublayer source.

ServiceFeatureTable *ArcGISMapImageSublayer::table() const

Returns the sublayer's feature table.

This only applies to sublayers of type "Feature layer" or "Table". This method returns nullptr if the sublayer has not been loaded.

This function was introduced in Esri::ArcGISRuntime 100.3.


Feedback on this topic?