Warning

This feature is available in the Full MapKit SDK version

MMKPolygonManeuverStyle

@interface MMKPolygonManeuverStyle : NSObject

The style that is used to display polygon maneuvers and trajectories on the map.

Summary

Class methods

+ (nonnull MMKPolygonManeuverStyle *)polygonManeuverStyleWithTrajectoryWidth:( float)trajectoryWidth
                                                             trajectoryColor:(nonnull UIColor *)trajectoryColor
                                                                polygonAlpha:( float)polygonAlpha
                                                                polygonColor:(nonnull UIColor *)polygonColor
                                                                  renderMode:( MMKPolygonManeuverRenderMode)renderMode
                                                                fadeDistance:( float)fadeDistance
                                                                   fadeAlpha:( float)fadeAlpha
                                                                     enabled:( BOOL)enabled;

Properties

@property (nonatomic, readonly) float trajectoryWidth;
Width of trajectory line on polygon maneuvers

@property (nonatomic, readonly, nonnull) UIColor *trajectoryColor;
Color of trajectory line on polygon maneuvers

@property (nonatomic, readonly) float polygonAlpha;
Polygon maneuver alpha

@property (nonatomic, readonly, nonnull) UIColor *polygonColor;
Color of polygon maneuver

@property (nonatomic, readonly) MMKPolygonManeuverRenderMode renderMode;
Polygon maneuver render mode

@property (nonatomic, readonly) float fadeDistance;
In meters

@property (nonatomic, readonly) float fadeAlpha;
Must be in range [0, 1], where 0 means invisibility

@property (nonatomic, readonly) BOOL enabled;
Enables/disables polygon maneuvers

Class methods

polygonManeuverStyleWithTrajectoryWidth:trajectoryColor:polygonAlpha:polygonColor:renderMode:fadeDistance:fadeAlpha:enabled:

+ (nonnull MMKPolygonManeuverStyle *)polygonManeuverStyleWithTrajectoryWidth:( float)trajectoryWidth
                                                             trajectoryColor:(nonnull UIColor *)trajectoryColor
                                                                polygonAlpha:( float)polygonAlpha
                                                                polygonColor:(nonnull UIColor *)polygonColor
                                                                  renderMode:( MMKPolygonManeuverRenderMode)renderMode
                                                                fadeDistance:( float)fadeDistance
                                                                   fadeAlpha:( float)fadeAlpha
                                                                     enabled:( BOOL)enabled;


Properties

trajectoryWidth

@property (nonatomic, readonly) float trajectoryWidth;

Width of trajectory line on polygon maneuvers. Used only ColoredPolygon render mode.


trajectoryColor

@property (nonatomic, readonly, nonnull) UIColor *trajectoryColor;

Color of trajectory line on polygon maneuvers. Used only ColoredPolygon render mode.


polygonAlpha

@property (nonatomic, readonly) float polygonAlpha;

Polygon maneuver alpha.


polygonColor

@property (nonatomic, readonly, nonnull) UIColor *polygonColor;

Color of polygon maneuver. Used only ColoredTrajectory render mode.


renderMode

@property (nonatomic, readonly) MMKPolygonManeuverRenderMode renderMode;

Polygon maneuver render mode.


fadeDistance

@property (nonatomic, readonly) float fadeDistance;

In meters.


fadeAlpha

@property (nonatomic, readonly) float fadeAlpha;

Must be in range [0, 1], where 0 means invisibility.


enabled

@property (nonatomic, readonly) BOOL enabled;

Enables/disables polygon maneuvers.