MMKTextStyle

@interface MMKTextStyle : NSObject

The style of placemarks's text.

Summary

Class methods

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

Instance methods

- (nonnull MMKTextStyle *)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)
    MMKTextStylePlacement 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, MMKTextStyle::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 MMKTextStyle *)textStyleWithSize:( float)size
                                      color:(nullable UIColor *)color
                               outlineWidth:( float)outlineWidth
                               outlineColor:(nullable UIColor *)outlineColor
                                  placement:( MMKTextStylePlacement)placement
                                     offset:( float)offset
                             offsetFromIcon:( BOOL)offsetFromIcon
                               textOptional:( BOOL)textOptional;


Instance methods

init

- (nonnull MMKTextStyle *)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)
    MMKTextStylePlacement 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 MMKTextStyle::offsetFromIcon value Direction of the offset specified with MMKTextStyle::placement property Ignored when placement is 'Center' default: 0


offsetFromIcon

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

When set, MMKTextStyle::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