YMKTextStyle

class YMKTextStyle : NSObject

The style of placemarks's text.

Summary

Class methods

 init(size: Float,
     color: UIColor?,
 outlineWidth: Float,
 outlineColor: UIColor?,
 placement: YMKTextStylePlacement,
    offset: Float,
 offsetFromIcon: Bool,
 textOptional: Bool)

Instance methods

init()

Properties

var size: Float { get set }
Text font size in units

var color: UIColor? { get set }
Text color

var outlineWidth: Float { get set }
Outline width in units

var outlineColor: UIColor? { get set }
Outline color

var placementYMKTextStylePlacement { get set }
Text placement position

var offset: Float { get set }
Text offset in units

var offsetFromIcon: Bool { get set }
When set, YMKTextStyle::offset is a padding between the text and icon edges

var textOptional: Bool { get set }
Allow dropping text but keeping icon during conflict resolution default: false

Class methods

init(size:color:outlineWidth:outlineColor:placement:offset:offsetFromIcon:textOptional:)

 init(size: Float,
     color: UIColor?,
 outlineWidth: Float,
 outlineColor: UIColor?,
 placement: YMKTextStylePlacement,
    offset: Float,
 offsetFromIcon: Bool,
 textOptional: Bool)


Instance methods

init()

init()


Properties

size

var size: Float { get set }

Text font size in units. default: 8


color

var color: UIColor? { get set }

Text color. default: black

Optional field, can be nil.


outlineWidth

var outlineWidth: Float { get set }

Outline width in units. default: 1


outlineColor

var outlineColor: UIColor? { get set }

Outline color. default: white

Optional field, can be nil.


placement

var placement: YMKTextStylePlacement { get set }

Text placement position. default: Center


offset

var offset: Float { get set }

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

var offsetFromIcon: Bool { get set }

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


textOptional

var textOptional: Bool { get set }

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


Предыдущая
Следующая