TTMapRouteStyle

Objective-C

@interface TTMapRouteStyle : NSObject

Swift

class TTMapRouteStyle : NSObject

Defines style how route will be drawn on map.

  • Width of route. Route outline is calculated proportionally.

    Declaration

    Objective-C

    @property (nonatomic, readonly) CGFloat width;

    Swift

    var width: CGFloat { get }
  • Fill color

    Declaration

    Objective-C

    @property (nonatomic, readonly) int *_Nonnull fillColor;

    Swift

    var fillColor: UnsafeMutablePointer<CMColor> { get }
  • Outline color

    Declaration

    Objective-C

    @property (nonatomic, readonly) int *_Nonnull outlineColor;

    Swift

    var outlineColor: UnsafeMutablePointer<Int32> { get }
  • Default active style. Blue line with dark blue outline.

    Declaration

    Objective-C

    + (TTMapRouteStyle *_Nonnull)defaultActiveStyle;

    Swift

    class func defaultActive() -> TTMapRouteStyle

    Return Value

    TTMapRouteStyle

  • Default inactive style. Gray line with dark gray outline.

    Declaration

    Objective-C

    + (TTMapRouteStyle *_Nonnull)defaultInactiveStyle;

    Swift

    class func defaultInactive() -> TTMapRouteStyle

    Return Value

    TTMapRouteStyle