ArcGIS Runtime SDK for iOS
100.15
|
Allows you to interrogate the properties of a sublayer within an annotation layer and to change the visibility of the sublayer.
You can get a collection of sublayers (AGSAnnotationSublayer
) from the annotation layer using AGSLayerContent::subLayerContents
. AGSAnnotationSublayer
objects only exist as part of an AGSAnnotationLayer
object, populated when the AGSAnnotationLayer
is loaded. They cannot exist separately. Annotation sublayers offer finer control over your annotation, allowing the author to set different visual properties from the parent annotation layer. These visual properties include font, size, color, or different minimum and maximum scale ranges.
Instance Methods | |
(id< AGSCancelable >) | - fetchLegendInfosWithCompletion: |
(BOOL) | - isVisibleAtScale: |
Properties | |
BOOL | canChangeVisibility |
NSString * | definitionExpression |
double | maxScale |
double | minScale |
NSString * | name |
float | opacity |
BOOL | scaleSymbols |
BOOL | showInLegend |
NSArray< id< AGSLayerContent > > * | subLayerContents |
void(^ | subLayerContentsChangedHandler )(void) |
NSInteger | sublayerID |
BOOL | visible |
- (id<AGSCancelable>) fetchLegendInfosWithCompletion: | (void(^)(NSArray< AGSLegendInfo * > *__nullable legendInfos, NSError *__nullable error)) | completion |
Fetches the array of legend infos (AGSLegendInfo
) for this layer.
- (BOOL) isVisibleAtScale: | (double) | scale |
Check whether this layer is visible at a given scale.
|
readrequirednonatomicassigninherited |
Denotes whether the layer can change visibility or not.
|
readnonatomiccopy |
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 (https://en.wikipedia.org/wiki/SQL-92). 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 entitled "Querying Feature Services Date-Time Queries" (https://www.esri.com/arcgis-blog/products/api-rest/data-management/querying-feature-services-date-time-queries/) for more information.
|
readnonatomicassign |
The maximum scale at which to display the Sublayer.
|
readnonatomicassign |
The minimum scale at which to display the Sublayer. Zero indicates that the annotation will be visible no matter how far the user zooms out.
|
readnonatomiccopyinherited |
The name of the layer.
|
readnonatomicassign |
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.
|
readnonatomicassign |
The property specifies whether the annotation text scales with the AGSMapView
. For annotation layers and sublayers this is always true.
|
readwritenonatomicassigninherited |
Indicates whether to show legend information.
|
readnonatomiccopyinherited |
This layer's sub-layers.
|
readwritenonatomiccopyinherited |
Block that is invoked when the sub layer contents changes.
|
readnonatomicassign |
Non-negative integer id number of the sublayer within its annotation layer
|
readwritenonatomicassigninherited |
Denotes whether the layer is visible or not. The visibility changes can be monitored using Key-Value Observing (KVO).