Annotation sublayers represent annotation subclasses and are used to control their visibility and scale ranges.
Referenced by: Annotation Layer (ArcGISAnnotationLayer)
Properties
| Property | Details |
|---|---|
| id | A unique identifying string for the layer. |
| layerDefinition | A layerDefinition object defining the attribute schema and drawing information for the layer. See layerDefinition properties table. |
| layerType | String indicating the layer type. Valid value of this property ArcGISAnnotationSubLayer |
| subLayerId | The identifier for this sublayer within its layer corresponding to the annotation class it represents. |
| title | A user-friendly string title for the layer that can be used in a table of contents. |
| visibility | Boolean property determining whether the layer is initially visible in the web map. |
layerDefinition properties
| Property | Details |
|---|---|
| maxScale | Integer property used to determine the maximum scale at which the layer is displayed. |
| minScale | Integer 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}