TTMapRouteStyleLayer

Objective-C

@interface TTMapRouteStyleLayer : NSObject

Swift

class TTMapRouteStyleLayer : NSObject

Public Preview

This is under Public Preview and subject to change by the end of 2022.02. More information is available at: https://developer.tomtom.com/public-preview .

Defines a style that shows how a route will be drawn on the map.

  • Route layer width

    Declaration

    Objective-C

    @property (nonatomic) NSNumber *_Nullable width;

    Swift

    var width: NSNumber? { get set }
  • Route layer color

    Declaration

    Objective-C

    @property (nonatomic) int *_Nullable color;

    Swift

    var color: UnsafeMutablePointer<Int32>? { get set }
  • Sets the lengths of the alternating dashes and gaps. The lengths are later scaled by the line width.

    Declaration

    Objective-C

    @property (nonatomic) NSArray<NSNumber *> *_Nullable dashArray;

    Swift

    var dashArray: [NSNumber]? { get set }
  • Sets the display of line endings.

    Declaration

    Objective-C

    @property (nonatomic) TTLineCapType capType;

    Swift

    var capType: TTLineCapType { get set }
  • Sets the display of lines when joining.

    Declaration

    Objective-C

    @property (nonatomic) TTLineJoinType joinType;

    Swift

    var joinType: TTLineJoinType { get set }