MBMAnnotatedFeature
@interface MBMAnnotatedFeature : NSObject
Represents a variant that can store either a GeoJSON geometry or an annotated layer feature.
-
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)fromGeometry:(nonnull MBXGeometry *)value;
Swift
class func fromGeometry(_ value: MBXGeometry) -> Self
-
Undocumented
Declaration
Objective-C
+ (nonnull instancetype)fromAnnotatedLayerFeature:(nonnull MBMAnnotatedLayerFeature *)value;
Swift
class func fromAnnotatedLayerFeature(_ value: MBMAnnotatedLayerFeature) -> Self
-
Undocumented
Declaration
Objective-C
- (BOOL)isGeometry;
Swift
func isGeometry() -> Bool
-
Undocumented
Declaration
Objective-C
- (BOOL)isAnnotatedLayerFeature;
Swift
func isAnnotatedLayerFeature() -> Bool
-
Undocumented
Declaration
Objective-C
- (nonnull MBXGeometry *)getGeometry __attribute((ns_returns_retained));
Swift
func getGeometry() -> MBXGeometry
-
Undocumented
Declaration
Objective-C
- (nonnull MBMAnnotatedLayerFeature *)getAnnotatedLayerFeature __attribute((ns_returns_retained));
Swift
func getAnnotatedLayerFeature() -> MBMAnnotatedLayerFeature
-
Undocumented
Declaration
Objective-C
@property (nonatomic, readonly) MBMAnnotatedFeatureType type
Swift
var type: AnnotatedFeatureType { get }