MMKLineStyle
|
class MMKLineStyle : NSObject |
The style of the polyline.
Summary
Class methods
|
 init(strokeWidth: Float, |
Instance methods
|
init() |
Properties
|
var strokeWidth: Float { get set } |
|
var gradientLength: Float { get set } |
|
var outlineColor: UIColor { get set } |
|
var outlineWidth: Float { get set } |
|
var innerOutlineEnabled: Bool { get set } |
|
var turnRadius: Float { get set } |
|
var arcApproximationStep: Float { get set } |
|
var dashLength: Float { get set } |
|
var gapLength: Float { get set } |
|
var dashOffset: Float { get set } |
Class methods
init(strokeWidth:gradientLength:outlineColor:outlineWidth:innerOutlineEnabled:turnRadius:arcApproximationStep:dashLength:gapLength:dashOffset:)
|
 init(strokeWidth: Float, |
Instance methods
init()
|
init() |
Properties
strokeWidth
|
var strokeWidth: Float { get set } |
The stroke width in units. Default: 5. The size of a unit is equal to the size of a pixel at the current zoom level when the camera position's tilt is equal to 0 and the scale factor is equal to 1.
gradientLength
|
var gradientLength: Float { get set } |
Maximum length (in units) of the gradient from one color to another. Default: 0.
outlineColor
|
var outlineColor: UIColor { get set } |
The outline color. Default: hexademical RGBA code 0x00000000.
outlineWidth
|
var outlineWidth: Float { get set } |
Width of the outline in units. Default: 0.
innerOutlineEnabled
|
var innerOutlineEnabled: Bool { get set } |
Enables the inner outline if true (a dark border along the edge of the outline). Default: false.
turnRadius
|
var turnRadius: Float { get set } |
Maximum radius of a turn. Measured in units. Default: 10.
arcApproximationStep
|
var arcApproximationStep: Float { get set } |
Defines step of arc approximation. Smaller values make polyline smoother. Measured in degrees. Default: 12.
dashLength
|
var dashLength: Float { get set } |
Length of a dash in units. Default: 0 (dashing is turned off). Arrows are ignored in dashed polylines.
gapLength
|
var gapLength: Float { get set } |
Length of the gap between two dashes in units. Default: 0 (dashing is turned off). Arrows are ignored in dashed polylines.
dashOffset
|
var dashOffset: Float { get set } |
Offset from the start of the polyline to the reference dash in units. Default: 0.