MBMViewAnnotationOptions


@interface MBMViewAnnotationOptions : NSObject

Various options needed for displaying view annotation.

  • 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)initWithGeometry:(nullable MBXGeometry *)geometry
                         associatedFeatureId:(nullable NSString *)associatedFeatureId
                                       width:(nullable NSNumber *)width
                                      height:(nullable NSNumber *)height
                                allowOverlap:(nullable NSNumber *)allowOverlap
                                     visible:(nullable NSNumber *)visible
                                      anchor:(nullable NSNumber *)anchor
                                     offsetX:(nullable NSNumber *)offsetX
                                     offsetY:(nullable NSNumber *)offsetY
                                    selected:(nullable NSNumber *)selected NS_REFINED_FOR_SWIFT;
  • Geometry the view annotation is bound to. Currently only support ‘point’ geometry type. Note: geometry must be set when adding a new view annotation, otherwise an operation error will be returned from the call that is associated to this option.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) MBXGeometry *geometry;
  • Optional style symbol id connected to given view annotation.

    View annotation’s visibility behaviour becomes tied to feature visibility where feature could represent an icon or a text label. E.g. if the bounded symbol is not visible view annotation also becomes not visible.

    Note: Invalid associatedFeatureId (meaning no actual symbol has such feature id) will lead to the cooresponding annotation to be invisible.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly, nullable) NSString *associatedFeatureId;
  • View annotation width in platform pixels.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSNumber *width;
  • View annotation height in platform pixels.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSNumber *height;
  • If true, the annotation will be visible even if it collides with other previously drawn annotations. If allowOverlap is null, default value false will be applied.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSNumber *allowOverlap;
  • Specifies if this view annotation is visible or not.

    Note: For Android and iOS platforms, if this property is not specified explicitly when creating / updating view annotation, visibility will be handled automatically based on actual Android or iOS view’s visibility e.g. if actual view is set to be not visible - Android / iOS part will automatically update view annotation to have visible = false.

    If visible is null, default value true will be applied.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSNumber *visible;
  • Anchor describing where the view annotation will be located relatively to given geometry. If anchor is null, default value CENTER will be applied.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSNumber *anchor;
  • Extra X offset in platform pixels. Providing positive value moves view annotation to the right while negative moves it to the left.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSNumber *offsetX;
  • Extra Y offset in platform pixels. Providing positive value moves view annotation to the top while negative moves it to the bottom.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSNumber *offsetY;
  • Specifies if this view annotation is selected meaning it should be placed on top of others. If selected in null, default value false will be applied.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSNumber *selected;