MBMQueriedFeature
@interface MBMQueriedFeature : NSObject
Represents query result that is returned in QueryFeaturesCallback.
See
Map#queryRenderedFeatures or Map#querySourceFeatures-
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)initWithFeature:(nonnull MBXFeature *)feature source:(nonnull NSString *)source sourceLayer:(nullable NSString *)sourceLayer state:(nonnull id)state;
Swift
init(feature: MBXFeature, source: String, sourceLayer: String?, state: Any)
-
Feature returned by the query
Declaration
Objective-C
@property (nonatomic, readonly, nonnull) MBXFeature *feature;
Swift
var feature: MBXFeature { get }
-
Source id for a queried feature
Declaration
Objective-C
@property (nonatomic, copy, readonly, nonnull) NSString *source;
Swift
var source: String { get }
-
Source layer id for a queried feature. May be null if source does not support layers, e.g., ‘geojson’ source, or when source’s data is not layered.
Declaration
Objective-C
@property (nonatomic, copy, readonly, nullable) NSString *sourceLayer;
Swift
var sourceLayer: String? { get }
-
Feature state for a queried feature. Type of the value is an Object, - see: Map#setFeatureState
Declaration
Objective-C
@property (nonatomic, copy, readonly, nonnull) id state;
Swift
var state: Any { get }