AI-generated Key Takeaways
- 
          GMTCPolylineStyleOptions is a data object used to customize polyline properties such as stroke width, stroke color, visibility, and z-index. 
- 
          The default settings for a polyline are a stroke width of 2.0, a blue stroke color, visibility set to YES, a z-index of 10, and neither geodesic nor traffic enabled. 
- 
          You can determine the visibility of the polyline and if it will be a straight line or a geodesic. 
- 
          Traffic visibility for the polyline can be toggled and also the color of the traffic for a given speed can be specified or the default color will be used. 
- 
          The class provides an initializer that sets these default values if not otherwise specified. 
GMTCPolylineStyleOptions
@interface GMTCPolylineStyleOptions
    : GMTCImmutableData <NSCopying, NSMutableCopying>Data object that holds polyline customization properties.
- 
                  
                  The width of the line stroke in screen points. Defaults to 2.0f. DeclarationSwift var strokeWidth: CGFloat { get }Objective-C @property (nonatomic, readonly) CGFloat strokeWidth;
- 
                  
                  Used to specify the color of one or more segments of a polyline. Defaults to [UIColor blueColor].DeclarationSwift @NSCopying var strokeColor: UIColor { get }Objective-C @property (nonatomic, copy, readonly) UIColor *_Nonnull strokeColor;
- 
                  
                  Boolean that determines the visibility of the polyline. Defaults to YES. DeclarationSwift var isVisible: Bool { get }Objective-C @property (nonatomic, readonly) BOOL isVisible;
- 
                  
                  Value that determines the z index of the polyline. Defaults to 10. DeclarationSwift var zIndex: Int32 { get }Objective-C @property (nonatomic, readonly) int32_t zIndex;
- 
                  
                  Indicates whether the segments of the polyline should be drawn as geodesics, as opposed to straight lines on the Mercator projection. DeclarationSwift var isGeodesic: Bool { get }Objective-C @property (nonatomic, readonly) BOOL isGeodesic;
- 
                  
                  Boolean that determines the visibility of the traffic polyline. Defaults to NO. DeclarationSwift var isTrafficEnabled: Bool { get }Objective-C @property (nonatomic, readonly) BOOL isTrafficEnabled;
- 
                  
                  Returns the color for the given speed type. DeclarationSwift func trafficColor(for speedType: GMTSSpeedType) -> UIColorObjective-C - (nonnull UIColor *)trafficColorForSpeed:(GMTSSpeedType)speedType;Return ValueIf traffic is enabled and no color is set, returns the default color for the given speed. If traffic is not enabled, returns the default stroke color. 
- 
                  
                  Initializes the object with default values: strokeWidth:2.0f,strokeColor:[UIColor blueColor],isVisible:YES,zIndex:10,isGeodesic:NO,isTrafficEnabled:NO.DeclarationSwift init()Objective-C - (nonnull instancetype)init;