Allows you to interrogate the properties of a sublayer within an annotation layer and to change the visibility of the sublayer. More...
Header: | #include <AnnotationSublayer.h> |
Since: | Esri::ArcGISRuntime 100.6 |
Inherits: | Esri::ArcGISRuntime::LayerContent |
This class was introduced in Esri::ArcGISRuntime 100.6.
Public Functions
virtual | ~AnnotationSublayer() override |
QString | definitionExpression() const |
double | maxScale() const |
double | minScale() const |
float | opacity() const |
bool | scaleSymbols() const |
qint64 | subLayerId() const |
Reimplemented Public Functions
virtual bool | canChangeVisibility() const override |
virtual bool | isAutoFetchLegendInfos() const override |
virtual bool | isShowInLegend() const override |
virtual bool | isVisible() const override |
virtual bool | isVisibleAtScale(double scale) const override |
virtual Esri::ArcGISRuntime::LegendInfoListModel * | legendInfos() const override |
virtual QString | name() const override |
virtual void | setAutoFetchLegendInfos(bool autoFetchLegendInfos) override |
virtual void | setShowInLegend(bool showInLegend) override |
virtual void | setVisible(bool visible) override |
virtual QList<Esri::ArcGISRuntime::LayerContent *> | subLayerContents() const override |
Detailed Description
You can get a list of AnnotationSublayer from AnnotationLayer using LayerContent::subLayerContents. AnnotationSublayer objects only exist as part of an AnnotationLayer object, populated when the AnnotationLayer is loaded. They cannot exist separately. Annotation sublayers offer finer control over your annotation, allowing you to set different visual properties from the parent annotation layer. These visual properties include font, size, color, or different minimum and maximum scale ranges.
Member Function Documentation
[override virtual]
AnnotationSublayer::~AnnotationSublayer ()
Destructor.
[override virtual]
bool AnnotationSublayer::canChangeVisibility () const
Reimplements: LayerContent::canChangeVisibility() const.
Returns whether the sublayer's visibility can be changed.
See LayerContent.
QString AnnotationSublayer::definitionExpression () const
Returns the where clause of the SQL expression that defines which annotation features from the feature table are selected into this sublayer.
The definition expression string uses the SQL-92 WHERE clause syntax. Be sure to escape special characters in the expression string as required for your platform. The DATE
keyword expects the date format yyyy-mm-dd
and the TIMESTAMP
keyword expects the time stamp format yyyy-mm-dd
hh:mm:ss. See the ArcGIS Blog article Querying Feature Services Date-Time Queries for more information.
[override virtual]
bool AnnotationSublayer::isAutoFetchLegendInfos () const
Reimplements: LayerContent::isAutoFetchLegendInfos() const.
Returns whether legend infos are automatically fetched by the sublayer.
See LayerContent.
[override virtual]
bool AnnotationSublayer::isShowInLegend () const
Reimplements: LayerContent::isShowInLegend() const.
Returns whether the sublayer will be shown in the legend.
See LayerContent.
[override virtual]
bool AnnotationSublayer::isVisible () const
Reimplements: LayerContent::isVisible() const.
Returns whether the sublayer is enabled to be visible.
See LayerContent.
[override virtual]
bool AnnotationSublayer::isVisibleAtScale (double scale) const
Reimplements: LayerContent::isVisibleAtScale(double scale) const.
Returns whether the sublayer is visible at a given scale.
See LayerContent.
[override virtual]
Esri::ArcGISRuntime::LegendInfoListModel *AnnotationSublayer::legendInfos () const
Reimplements: LayerContent::legendInfos() const.
Returns a list model of LegendInfo objects.
See LayerContent.
double AnnotationSublayer::maxScale () const
Returns the maximum scale at which to display the sublayer.
double AnnotationSublayer::minScale () const
Returns the minimum scale at which to display the sublayer.
[override virtual]
QString AnnotationSublayer::name() const
Reimplements: LayerContent::name() const.
Returns the sublayer's name.
See LayerContent.
float AnnotationSublayer::opacity() const
Returns the opacity with which to display the annotation text associated with this sublayer.
Opacity is a value between 0 and 1, with 0 indicating that the annotation will be completely transparent, and 1 indicating that the annotation will be completely opaque.
bool AnnotationSublayer::scaleSymbols () const
Returns whether the annotation text scales with the MapView.
[override virtual]
void AnnotationSublayer::setAutoFetchLegendInfos (bool autoFetchLegendInfos )
Reimplements: LayerContent::setAutoFetchLegendInfos(bool autoFetchLegendInfos).
Sets whether legend infos are automatically fetched by the sublayer's legend info list model to autoFetchLegendInfos.
See LayerContent.
See also isAutoFetchLegendInfos().
[override virtual]
void AnnotationSublayer::setShowInLegend (bool showInLegend )
Reimplements: LayerContent::setShowInLegend(bool showInLegend).
Sets whether the sublayer will be shown in the legend to showInLegend.
See LayerContent.
See also isShowInLegend().
[override virtual]
void AnnotationSublayer::setVisible (bool visible)
Reimplements: LayerContent::setVisible(bool visible).
Sets whether the sublayer is visible to visible.
See LayerContent.
See also isVisible().
[override virtual]
QList<Esri::ArcGISRuntime::LayerContent *> AnnotationSublayer::subLayerContents () const
Reimplements: LayerContent::subLayerContents() const.
Returns a list of layer contents for any sublayer.
See LayerContent.
qint64 AnnotationSublayer::subLayerId () const
Returns non-negative integer id number of the AnnotationSublayer within its AnnotationLayer.