AWFTextAnnotationStyle

Objective-C

@interface AWFTextAnnotationStyle : AWFMapItemStyle

Swift

class AWFTextAnnotationStyle : AWFMapItemStyle

An AWFTextAnnotationStyle object provides the style specifications to be used for a text annotation’s representation on a map.

  • The text style specification.

    Declaration

    Objective-C

    @property (nonatomic, strong) AWFTextStyleSpec *textStyle
  • The corner radius of the annotation view.

    Declaration

    Objective-C

    @property (nonatomic) CGFloat cornerRadius;

    Swift

    var cornerRadius: CGFloat { get set }
  • The padding to apply around the text label relative to the annotation view’s bounds.

    Declaration

    Objective-C

    @property (nonatomic) UIEdgeInsets contentEdgeInsets;

    Swift

    var contentEdgeInsets: UIEdgeInsets { get set }
  • Generates an image representation of the annotation’s view based on the style specifications. *

    Declaration

    Objective-C

    - (nullable UIImage *)imageFromStyleWithText:(nonnull NSString *)text;

    Swift

    func imageFromStyle(withText text: String) -> UIImage?

    Return Value

    An image representation of the annotation.