MMKTextStyle
@interface MMKTextStyle : NSObject |
The style of placemarks's text.
Summary
Class methods
+ (nonnull MMKTextStyle *)textStyleWithSize:( float)size |
Instance methods
- (nonnull MMKTextStyle *)init; |
Properties
@property (nonatomic, assign, unsafe_unretained, readwrite) float size; |
@property (nonatomic, strong, readwrite, nullable) UIColor *color; |
@property (nonatomic, assign, unsafe_unretained, readwrite) float outlineWidth; |
@property (nonatomic, strong, readwrite, nullable) UIColor *outlineColor; |
@property (nonatomic, assign, unsafe_unretained, readwrite) |
@property (nonatomic, assign, unsafe_unretained, readwrite) float offset; |
@property (nonatomic, assign, unsafe_unretained, readwrite) BOOL offsetFromIcon; |
@property (nonatomic, assign, unsafe_unretained, readwrite) BOOL textOptional; |
Class methods
textStyleWithSize:color:outlineWidth:outlineColor:placement:offset:offsetFromIcon:textOptional:
+ (nonnull MMKTextStyle *)textStyleWithSize:( float)size |
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) |
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