MMKPolylineStyle

@interface MMKPolylineStyle : NSObject

Zoom and tilt independent styling parameters for outline. Default values for PolylineStyle fields are the same as corresponding PolylineMapObject if not specified explicitly.

Summary

Instance methods

- (void)setStrokeWidthWithStrokeWidth:
    (nonnull MMKStylingProportionFunction *)strokeWidth;

The stroke width in units (see mapkit

- (void)setOutlineWidthWithOutlineWidth:
    (nonnull MMKStylingProportionFunction *)outlineWidth;

Width of the outline in units

- (void)setStrokeColorWithStrokeColor:(nonnull UIColor *)strokeColor;
Primary color of polyline

- (void)setOutlineColorWithOutlineColor:(nonnull UIColor *)outlineColor;
Color of outline in polyline

- (void)setInnerOutlineEnabledWithInnerOutlineEnabled:(BOOL)innerOutlineEnabled;
Enables the inner outline if true (a dark border along the edge of the outline)

- (void)setTurnRadiusWithTurnRadius:(float)turnRadius;
Maximum radius of a turn

- (void)setArcApproximationStepWithArcApproximationStep:
    (float)arcApproximationStep;

Defines step of arc approximation

- (void)setDashLengthWithDashLength:(float)dashLength;
Length of a dash in units

- (void)setGapLengthWithGapLength:(float)gapLength;
Length of the gap between two dashes in units

- (void)setDashOffsetWithDashOffset:(float)dashOffset;
Offset from the start of the polyline to the reference dash in units

Properties

@property (nonatomic, readonly, getter=isValid) BOOL valid;
Tells if this object is valid or no

Instance methods

setStrokeWidthWithStrokeWidth:

- (void)setStrokeWidthWithStrokeWidth:
    (nonnull MMKStylingProportionFunction *)strokeWidth;

The stroke width in units (see mapkit.map.PolylineMapObject.strokeWidth for details). Default: constantValue: 5


setOutlineWidthWithOutlineWidth:

- (void)setOutlineWidthWithOutlineWidth:
    (nonnull MMKStylingProportionFunction *)outlineWidth;

Width of the outline in units. Default: 0


setStrokeColorWithStrokeColor:

- (void)setStrokeColorWithStrokeColor:(nonnull UIColor *)strokeColor;

Primary color of polyline. Used only if jams disabled or unavailable.


setOutlineColorWithOutlineColor:

- (void)setOutlineColorWithOutlineColor:(nonnull UIColor *)outlineColor;

Color of outline in polyline.


setInnerOutlineEnabledWithInnerOutlineEnabled:

- (void)setInnerOutlineEnabledWithInnerOutlineEnabled:(BOOL)innerOutlineEnabled;

Enables the inner outline if true (a dark border along the edge of the outline).


setTurnRadiusWithTurnRadius:

- (void)setTurnRadiusWithTurnRadius:(float)turnRadius;

Maximum radius of a turn. Measured in units.


setArcApproximationStepWithArcApproximationStep:

- (void)setArcApproximationStepWithArcApproximationStep:
    (float)arcApproximationStep;

Defines step of arc approximation. Smaller values make polyline smoother. Measured in degrees.


setDashLengthWithDashLength:

- (void)setDashLengthWithDashLength:(float)dashLength;

Length of a dash in units. Default: 0 (dashing is turned off). Arrows are ignored in dashed polylines.


setGapLengthWithGapLength:

- (void)setGapLengthWithGapLength:(float)gapLength;

Length of the gap between two dashes in units. Default: 0 (dashing is turned off). Arrows are ignored in dashed polylines.


setDashOffsetWithDashOffset:

- (void)setDashOffsetWithDashOffset:(float)dashOffset;

Offset from the start of the polyline to the reference dash in units. Default: 0.


Properties

valid

@property (nonatomic, readonly, getter=isValid) BOOL valid;

Tells if this object is valid or no. Any method called on an invalid object will throw an exception. The object becomes invalid only on UI thread, and only when its implementation depends on objects already destroyed by now. Please refer to general docs about the interface for details on its invalidation.