Warning

This feature is available in the Full MapKit SDK version

MMKPolygonManeuverStyle

class MMKPolygonManeuverStyle : NSObject

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

Summary

Class methods

 init(trajectoryWidth: Float,
      trajectoryColor: UIColor,
         polygonAlpha: Float,
         polygonColor: UIColor,
           renderMode: MMKPolygonManeuverRenderMode,
         fadeDistance: Float,
            fadeAlpha: Float,
              enabled: Bool)

Properties

var trajectoryWidth: Float { get }
Width of trajectory line on polygon maneuvers

var trajectoryColor: UIColor { get }
Color of trajectory line on polygon maneuvers

var polygonAlpha: Float { get }
Polygon maneuver alpha

var polygonColor: UIColor { get }
Color of polygon maneuver

var renderModeMMKPolygonManeuverRenderMode { get }
Polygon maneuver render mode

var fadeDistance: Float { get }
In meters

var fadeAlpha: Float { get }
Must be in range [0, 1], where 0 means invisibility

var enabled: Bool { get }
Enables/disables polygon maneuvers

Class methods

init(trajectoryWidth:trajectoryColor:polygonAlpha:polygonColor:renderMode:fadeDistance:fadeAlpha:enabled:)

 init(trajectoryWidth: Float,
      trajectoryColor: UIColor,
         polygonAlpha: Float,
         polygonColor: UIColor,
           renderMode: MMKPolygonManeuverRenderMode,
         fadeDistance: Float,
            fadeAlpha: Float,
              enabled: Bool)


Properties

trajectoryWidth

var trajectoryWidth: Float { get }

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


trajectoryColor

var trajectoryColor: UIColor { get }

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


polygonAlpha

var polygonAlpha: Float { get }

Polygon maneuver alpha.


polygonColor

var polygonColor: UIColor { get }

Color of polygon maneuver. Used only ColoredTrajectory render mode.


renderMode

var renderMode: MMKPolygonManeuverRenderMode { get }

Polygon maneuver render mode.


fadeDistance

var fadeDistance: Float { get }

In meters.


fadeAlpha

var fadeAlpha: Float { get }

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


enabled

var enabled: Bool { get }

Enables/disables polygon maneuvers.