Skip To Content ArcGIS for Developers Sign In Dashboard

AnnotationSublayer QML Type

A sublayer of a Layer. More...

Import Statement: import Esri.ArcGISRuntime 100.8
Since: Esri.ArcGISRuntime 100.6




Detailed Description

Note: You cannot declare or create a component of this type in QML code.

Some layer types contain sublayers. An instance of this class allows you to interrogate the properties of a sublayer within an AnnotationLayer, and to change the visibility of the sublayer.

See also LayerContent.

Property Documentation

autoFetchLegendInfos : bool

Returns whether legend infos are automatically fetched by the sublayer.

See also LayerContent.

canChangeVisibility : bool

Returns whether the sublayer's visibility can be changed (read-only).

See also LayerContent.

definitionExpression : string

Returns which annotation features from the feature table are selected into this sublayer (read-only).

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.

legendInfos : LegendInfoListModel

Returns a list model containing legend infos for the sublayer and any nested sublayers (read-only).

See also LayerContent.

maxScale : double

Returns the maximum scale at which to display the sublayer (read-only).

minScale : double

Returns the minimum scale at which to display the sublayer (read-only).

name : string

Returns the sublayer's name (read-only).

See also LayerContent.

opacity : real

Returns the opacity with which to display the annotation text associated with this sublayer (read-only).

scaleSymbols : bool

Returns whether the annotation text scales with the MapView (read-only).

showInLegend : bool

Whether the sublayer will be shown in the legend.

See also LayerContent.

subLayerContents : list<LayerContent>

Returns a list of layer contents for any sublayer (read-only).

See also LayerContent.

subLayerId : string

Returns a non-negative integer id number of the AnnotationSublayer within its AnnotationLayer (read-only).

See also subLayerIdAsInt.

subLayerIdAsInt : double

The same as subLayerId but represented as an integer type (read-only).

Note: The underlying Runtime property is represented as a 64-bit integer type. See Accessing 64-bit integer properties from QML.

visible : bool

The visiblity of the subLayer.

See also LayerContent.

Method Documentation

bool isVisibleAtScale(double scale)

Whether the sublayer is visible at a given scale.

Feedback on this topic?