AI-generated Key Takeaways
- 
          GMSPolylineis an object used to represent a line on a map, connecting multiple points defined by aGMSPath.
- 
          It offers customizable attributes including line width ( strokeWidth), color (strokeColor), and whether it follows the Earth's curvature (geodesic).
- 
          GMSPolylinecan also have styled segments with varying colors or patterns, determined by itsspansproperty.
- 
          To create a polyline, use the designated constructor polylineWithPath:providing the desired path for the line.
GMSPolyline
@interface GMSPolyline : GMSOverlayGMSPolyline specifies the available options for a polyline that exists on the Earth’s surface.
It is drawn as a physical line between the points specified in path.
- 
                  
                  The width of the line in screen points. Defaults to 1. DeclarationSwift var strokeWidth: CGFloat { get set }Objective-C @property (nonatomic) CGFloat strokeWidth;
- 
                  
                  The UIColorused to render the polyline. Defaults to[UIColor blueColor].DeclarationSwift var strokeColor: UIColor { get set }Objective-C @property (nonatomic) UIColor *_Nonnull strokeColor;
- 
                  
                  Whether this line should be rendered with geodesic correction. DeclarationSwift var geodesic: Bool { get set }Objective-C @property (nonatomic) BOOL geodesic;
- 
                  
                  An array containing GMSStyleSpan, the spans used to render this polyline.If this array contains fewer segments than the polyline itself, the final segment will be applied over the remaining length. If this array is unset or empty, then strokeColoris used for the entire line instead.DeclarationSwift var spans: [GMSStyleSpan]? { get set }Objective-C @property (nonatomic, copy, nullable) NSArray<GMSStyleSpan *> *spans;