Annotation sublayers represent annotation subclasses and are used to control their visibility and scale ranges.

Referenced by: Annotation Layer (ArcGISAnnotationLayer)

Properties

PropertyDetails
idA unique identifying string for the layer.
layerDefinitionA layerDefinition object defining the attribute schema and drawing information for the layer.
See layerDefinition properties table.
layerTypeString indicating the layer type.
Valid value of this property ArcGISAnnotationSubLayer
subLayerIdThe identifier for this sublayer within its layer corresponding to the annotation class it represents.
titleA user-friendly string title for the layer that can be used in a table of contents.
visibilityBoolean property determining whether the layer is initially visible in the web map.

layerDefinition properties

PropertyDetails
maxScaleInteger property used to determine the maximum scale at which the layer is displayed.
minScaleInteger property used to determine the minimum scale at which the layer is displayed.

annotationSubLayer Example

Sample ArcGISAnnotationSubLayer in isolation

{
"id": "15730a43915a488ba4696d29a40ee6e6",
"layerDefinition": {
"maxScale": 1000,
"minScale": 100000
},
"layerType": "ArcGISAnnotationSubLayer",
"title": "Class 1",
"subLayerId": 0,
"visibility": true
}