MBMQueriedFeature


@interface MBMQueriedFeature : NSObject

Represents query result that is returned in QueryFeaturesCallback.

See

queryRenderedFeatures or 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 NS_REFINED_FOR_SWIFT;
  • Feature returned by the query.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nonnull) MBXFeature *feature;
  • 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 data provided by the source 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

    setFeatureState and getFeatureState

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly, nonnull) id state;

    Swift

    var state: Any { get }