MMKLineStyle

class MMKLineStyle : NSObject

The style of the polyline.

Summary

Class methods

 init(strokeWidth: Float,
   gradientLength: Float,
     outlineColor: UIColor,
     outlineWidth: Float,
 innerOutlineEnabled: Bool,
       turnRadius: Float,
 arcApproximationStep: Float,
       dashLength: Float,
        gapLength: Float,
       dashOffset: Float)

Instance methods

init()

Properties

var strokeWidth: Float { get set }
The stroke width in units

var gradientLength: Float { get set }
Maximum length (in units) of the gradient from one color to another

var outlineColor: UIColor { get set }
The outline color

var outlineWidth: Float { get set }
Width of the outline in units

var innerOutlineEnabled: Bool { get set }
Enables the inner outline if true (a dark border along the edge of the outline)

var turnRadius: Float { get set }
Maximum radius of a turn

var arcApproximationStep: Float { get set }
Defines step of arc approximation

var dashLength: Float { get set }
Length of a dash in units

var gapLength: Float { get set }
Length of the gap between two dashes in units

var dashOffset: Float { get set }
Offset from the start of the polyline to the reference dash in units

Class methods

init(strokeWidth:gradientLength:outlineColor:outlineWidth:innerOutlineEnabled:turnRadius:arcApproximationStep:dashLength:gapLength:dashOffset:)

 init(strokeWidth: Float,
   gradientLength: Float,
     outlineColor: UIColor,
     outlineWidth: Float,
 innerOutlineEnabled: Bool,
       turnRadius: Float,
 arcApproximationStep: Float,
       dashLength: Float,
        gapLength: Float,
       dashOffset: 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.