MMKPolylineStyle
- Summary
- Instance methods
- setStrokeWidthWithStrokeWidth(_:)
- setOutlineWidthWithOutlineWidth(_:)
- setStrokeColorWithStroke(_:)
- setOutlineColorWithOutlineColor(_:)
- setInnerOutlineEnabledWithInnerOutlineEnabled(_:)
- setTurnRadiusWithTurnRadius(_:)
- setArcApproximationStepWithArcApproximationStep(_:)
- setDashLengthWithDashLength(_:)
- setGapLengthWithGapLength(_:)
- setDashOffsetWithDashOffset(_:)
- Properties
class 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
func setStrokeWidthWithStrokeWidth( strokeWidth: MMKStylingProportionFunction_) |
func setOutlineWidthWithOutlineWidth( outlineWidth: MMKStylingProportionFunction_) |
func setStrokeColorWithStroke(_ strokeColor: UIColor) |
func setOutlineColorWithOutlineColor(_ outlineColor: UIColor) |
func setInnerOutlineEnabledWithInnerOutlineEnabled(_ innerOutlineEnabled: Bool) |
func setTurnRadiusWithTurnRadius(_ turnRadius: Float) |
func setArcApproximationStepWithArcApproximationStep(_ arcApproximationStep: Float) |
func setDashLengthWithDashLength(_ dashLength: Float) |
func setGapLengthWithGapLength(_ gapLength: Float) |
func setDashOffsetWithDashOffset(_ dashOffset: Float) |
Properties
var isValid: Bool { get } |
Instance methods
setStrokeWidthWithStrokeWidth(_:)
func setStrokeWidthWithStrokeWidth( strokeWidth: MMKStylingProportionFunction_) |
The stroke width in units (see mapkit.map.PolylineMapObject.strokeWidth for details). Default: constantValue: 5
setOutlineWidthWithOutlineWidth(_:)
func setOutlineWidthWithOutlineWidth( outlineWidth: MMKStylingProportionFunction_) |
Width of the outline in units. Default: 0
setStrokeColorWithStroke(_:)
func setStrokeColorWithStroke(_ strokeColor: UIColor) |
Primary color of polyline. Used only if jams disabled or unavailable.
setOutlineColorWithOutlineColor(_:)
func setOutlineColorWithOutlineColor(_ outlineColor: UIColor) |
Color of outline in polyline.
setInnerOutlineEnabledWithInnerOutlineEnabled(_:)
func setInnerOutlineEnabledWithInnerOutlineEnabled(_ innerOutlineEnabled: Bool) |
Enables the inner outline if true (a dark border along the edge of the outline).
setTurnRadiusWithTurnRadius(_:)
func setTurnRadiusWithTurnRadius(_ turnRadius: Float) |
Maximum radius of a turn. Measured in units.
setArcApproximationStepWithArcApproximationStep(_:)
func setArcApproximationStepWithArcApproximationStep(_ arcApproximationStep: Float) |
Defines step of arc approximation. Smaller values make polyline smoother. Measured in degrees.
setDashLengthWithDashLength(_:)
func setDashLengthWithDashLength(_ dashLength: Float) |
Length of a dash in units. Default: 0 (dashing is turned off). Arrows are ignored in dashed polylines.
setGapLengthWithGapLength(_:)
func setGapLengthWithGapLength(_ gapLength: Float) |
Length of the gap between two dashes in units. Default: 0 (dashing is turned off). Arrows are ignored in dashed polylines.
setDashOffsetWithDashOffset(_:)
func setDashOffsetWithDashOffset(_ dashOffset: Float) |
Offset from the start of the polyline to the reference dash in units. Default: 0.
Properties
isValid
var isValid: Bool { get } |
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.