YMKTextStyle

@interface YMKTextStyle : NSObject

The style of placemarks's text.

Summary

Class methods

+ (nonnull YMKTextStyle *)textStyleWithSize:( float)size
                                      color:(nullable UIColor *)color
                               outlineWidth:( float)outlineWidth
                               outlineColor:(nullable UIColor *)outlineColor
                                  placement:( YMKTextStylePlacement)placement
                                     offset:( float)offset
                             offsetFromIcon:( BOOL)offsetFromIcon
                               textOptional:( BOOL)textOptional;

Instance methods

- (nonnull YMKTextStyle *)init;

Properties

@property (nonatomic, assign, unsafe_unretained, readwrite) float size;
Text font size in units

@property (nonatomic, strong, readwrite, nullable) UIColor *color;
Text color

@property (nonatomic, assign, unsafe_unretained, readwrite) float outlineWidth;
Outline width in units

@property (nonatomic, strong, readwrite, nullable) UIColor *outlineColor;
Outline color

@property (nonatomic, assign, unsafe_unretained, readwrite)
    YMKTextStylePlacement placement;

Text placement position

@property (nonatomic, assign, unsafe_unretained, readwrite) float offset;
Text offset in units

@property (nonatomic, assign, unsafe_unretained, readwrite) BOOL offsetFromIcon;
When set, YMKTextStyle::offset is a padding between the text and icon edges

@property (nonatomic, assign, unsafe_unretained, readwrite) BOOL textOptional;
Allow dropping text but keeping icon during conflict resolution default: false

Class methods

textStyleWithSize:color:outlineWidth:outlineColor:placement:offset:offsetFromIcon:textOptional:

+ (nonnull YMKTextStyle *)textStyleWithSize:( float)size
                                      color:(nullable UIColor *)color
                               outlineWidth:( float)outlineWidth
                               outlineColor:(nullable UIColor *)outlineColor
                                  placement:( YMKTextStylePlacement)placement
                                     offset:( float)offset
                             offsetFromIcon:( BOOL)offsetFromIcon
                               textOptional:( BOOL)textOptional;


Instance methods

init

- (nonnull YMKTextStyle *)init;


Properties

size

@property (nonatomic, assign, unsafe_unretained, readwrite) float size;

Text font size in units. default: 8


color

@property (nonatomic, strong, readwrite, nullable) UIColor *color;

Text color. default: black

Optional field, can be nil.


outlineWidth

@property (nonatomic, assign, unsafe_unretained, readwrite) float outlineWidth;

Outline width in units. default: 1


outlineColor

@property (nonatomic, strong, readwrite, nullable) UIColor *outlineColor;

Outline color. default: white

Optional field, can be nil.


placement

@property (nonatomic, assign, unsafe_unretained, readwrite)
    YMKTextStylePlacement placement;

Text placement position. default: Center


offset

@property (nonatomic, assign, unsafe_unretained, readwrite) float offset;

Text offset in units. Measured either from point or form icon edges, depending on YMKTextStyle::offsetFromIcon value Direction of the offset specified with YMKTextStyle::placement property Ignored when placement is 'Center' default: 0


offsetFromIcon

@property (nonatomic, assign, unsafe_unretained, readwrite) BOOL offsetFromIcon;

When set, YMKTextStyle::offset is a padding between the text and icon edges. default: true


textOptional

@property (nonatomic, assign, unsafe_unretained, readwrite) BOOL textOptional;

Allow dropping text but keeping icon during conflict resolution default: false