AI-generated Key Takeaways
- 
          GMTCMutablePolylineStyleOptionsis a mutable data object for customizing polyline properties.
- 
          You can adjust the polyline's appearance by setting strokeWidth, which controls the line's width, andstrokeColor, which defines the line's color.
- 
          The visibility of the polyline is managed by the isVisibleproperty, with a default value ofYES.
- 
          The zIndexproperty, which defaults to 10, determines the polyline's layering order, andisGeodesicdetermines whether the polyline segments are straight or geodesic.
- 
          You can utilize isTrafficEnabledto manage the visibility of traffic data on the polyline, and set traffic colors for different speed types withsetTrafficColorForSpeed:color:.
GMTCMutablePolylineStyleOptions
@interface GMTCMutablePolylineStyleOptions : GMTCPolylineStyleOptionsMutable data object that holds polyline customization properties.
- 
                  
                  The width of the line stroke in screen points. If an invalid value is set here (less than 0.0f), then it will be set to the default value of 2.0f. DeclarationSwift var strokeWidth: CGFloat { get set }Objective-C @property (nonatomic) CGFloat strokeWidth;
- 
                  
                  Used to specify the color of one or more segments of a polyline. If set to NULL, then it will be set to the default value of [UIColor blueColor].DeclarationSwift @NSCopying var strokeColor: UIColor! { get set }Objective-C @property (nonatomic, copy, null_resettable) UIColor *strokeColor;
- 
                  
                  Boolean that determines the visibility of the polyline. Defaults to YES. DeclarationSwift var isVisible: Bool { get set }Objective-C @property (nonatomic) BOOL isVisible;
- 
                  
                  Value that determines the z index of the polyline. Defaults to 10. DeclarationSwift var zIndex: Int32 { get set }Objective-C @property (nonatomic) 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 set }Objective-C @property (nonatomic) BOOL isGeodesic;
- 
                  
                  Boolean that determines the visibility of the traffic polyline. Defaults to NO. DeclarationSwift var isTrafficEnabled: Bool { get set }Objective-C @property (nonatomic) BOOL isTrafficEnabled;
- 
                  
                  Sets the color for the given speed type. If color is set to NULL, then the default color for the speed type is used. DeclarationSwift func setTrafficColorFor(_ speedType: GMTSSpeedType, color: UIColor?)Objective-C - (void)setTrafficColorForSpeed:(GMTSSpeedType)speedType color:(nullable UIColor *)color;ParametersspeedTypeThe speed type to apply the color to. colorThe color to apply to the speed type.