Allows you to interrogate the properties of a sublayer within an annotation layer and to change the visibility of the sublayer. More...
Import Statement: | import Esri.ArcGISRuntime 100.15 |
Since: | Esri.ArcGISRuntime 100.6 |
Inherits: |
Properties
- autoFetchLegendInfos : bool
- canChangeVisibility : bool
- definitionExpression : string
- legendInfos : LegendInfoListModel
- maxScale : double
- minScale : double
- name : string
- opacity : real
- scaleSymbols : bool
- showInLegend : bool
- subLayerContents : list<LayerContent>
- subLayerId : string
- subLayerIdAsInt : double
- visible : bool
Methods
- bool isVisibleAtScale(double scale)
Detailed Description
Note: You cannot declare or create a component of this type in QML code.
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.
See also LayerContent.
Property Documentation
Returns whether legend infos are automatically fetched by the sublayer.
See also LayerContent.
Returns whether the sublayer's visibility can be changed (read-only).
See also LayerContent.
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.
Returns the sublayer's name (read-only).
See also LayerContent.
Returns the opacity with which to display the annotation text associated with this sublayer (read-only).
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.
Returns whether the annotation text scales with the MapView (read-only).
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.
Returns a non-negative integer id number of the AnnotationSublayer within its AnnotationLayer (read-only).
See also subLayerIdAsInt.
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.
The visiblity of the subLayer.
See also LayerContent.