MBMAnnotatedLayerFeature
@interface MBMAnnotatedLayerFeature : NSObject
Represents a connection between a view annotation and specific features within a designated layer source.
-
Unavailable
Undocumented
Declaration
Objective-C
- (nonnull instancetype)init NS_UNAVAILABLE;
-
Unavailable
Undocumented
Declaration
Objective-C
+ (nonnull instancetype)new NS_UNAVAILABLE;
-
Undocumented
Declaration
Objective-C
- (nonnull instancetype)initWithLayerId:(nonnull NSString *)layerId featureId:(nullable NSString *)featureId;
Swift
init(layerId: String, featureId: String?)
-
Associates the view annotation with a style layer ID that corresponds to its source feature’s geometry. This enables dynamic placement of view annotations within the feature geometry associated with the specified layer.
Declaration
Objective-C
@property (nonatomic, copy, readonly, nonnull) NSString *layerId;
Swift
var layerId: String { get }
-
Links the view annotation to a particular feature using its feature ID within the layer. The view annotation remains hidden if the feature is offscreen. A null value indicates that any feature within the source can be utilized to position the annotation. In the case of a symbol layer, if the associated feature’s symbol is hidden, the annotation will also remain invisible. Only valid feature IDs are permissible; otherwise, an error will be raised.
Declaration
Objective-C
@property (nonatomic, copy, readonly, nullable) NSString *featureId;
Swift
var featureId: String? { get }
-
Undocumented
Declaration
Objective-C
- (BOOL)isEqualToAnnotatedLayerFeature:(nonnull MBMAnnotatedLayerFeature *)other;
Swift
func isEqual(to other: AnnotatedLayerFeature) -> Bool