GMSPolyline 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.
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 strokeColor is used for the entire line instead.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-11-15 UTC."],[[["\u003cp\u003e\u003ccode\u003eGMSPolyline\u003c/code\u003e is an object used to represent a line drawn on a map, defined by a series of points called a path.\u003c/p\u003e\n"],["\u003cp\u003eYou can customize the appearance of the polyline, such as its color, width, and whether it follows the Earth's curvature (geodesic).\u003c/p\u003e\n"],["\u003cp\u003ePolylines can have styled segments using \u003ccode\u003eGMSStyleSpan\u003c/code\u003e allowing for variations in color or other visual properties along the line's length.\u003c/p\u003e\n"],["\u003cp\u003eIf no style spans are provided, the entire polyline is rendered with the \u003ccode\u003estrokeColor\u003c/code\u003e property, defaulting to blue.\u003c/p\u003e\n"],["\u003cp\u003eA convenience constructor \u003ccode\u003epolylineWithPath:\u003c/code\u003e simplifies the creation of a basic polyline with default settings.\u003c/p\u003e\n"]]],[],null,["GMSPolyline \n\n @interface GMSPolyline : ../Classes/GMSOverlay.html\n\n`GMSPolyline` specifies the available options for a polyline that exists on the Earth's surface.\nIt is drawn as a physical line between the points specified in `path`.\n- `\n ``\n ``\n `\n\n [path](#/c:objc(cs)GMSPolyline(py)path)`\n ` \n The path that describes this polyline. \n\n Declaration \n Swift \n\n @NSCopying var path: ../Classes/GMSPath.html? { get set }\n\n Objective-C \n\n @property (nonatomic, copy, nullable) ../Classes/GMSPath.html *path;\n\n- `\n ``\n ``\n `\n\n [strokeWidth](#/c:objc(cs)GMSPolyline(py)strokeWidth)`\n ` \n The width of the line in screen points. Defaults to 1. \n\n Declaration \n Swift \n\n var strokeWidth: CGFloat { get set }\n\n Objective-C \n\n @property (nonatomic) CGFloat strokeWidth;\n\n- `\n ``\n ``\n `\n\n [strokeColor](#/c:objc(cs)GMSPolyline(py)strokeColor)`\n ` \n The `UIColor` used to render the polyline. Defaults to `[UIColor blueColor]`. \n\n Declaration \n Swift \n\n var strokeColor: UIColor { get set }\n\n Objective-C \n\n @property (nonatomic) UIColor *_Nonnull strokeColor;\n\n- `\n ``\n ``\n `\n\n [geodesic](#/c:objc(cs)GMSPolyline(py)geodesic)`\n ` \n Whether this line should be rendered with geodesic correction. \n\n Declaration \n Swift \n\n var geodesic: Bool { get set }\n\n Objective-C \n\n @property (nonatomic) BOOL geodesic;\n\n- `\n ``\n ``\n `\n\n [+polylineWithPath:](#/c:objc(cs)GMSPolyline(cm)polylineWithPath:)`\n ` \n Convenience constructor for `GMSPolyline` for a particular path. Other properties will have\n default values. \n\n Declaration \n Swift \n\n convenience init(path: ../Classes/GMSPath.html?)\n\n Objective-C \n\n + (nonnull instancetype)polylineWithPath:(nullable ../Classes/GMSPath.html *)path;\n\n- `\n ``\n ``\n `\n\n [spans](#/c:objc(cs)GMSPolyline(py)spans)`\n ` \n An array containing [GMSStyleSpan](../Classes/GMSStyleSpan.html), the spans used to render this polyline.\n\n If this array contains fewer segments than the polyline itself, the final segment will be applied\n over the remaining length. If this array is unset or empty, then [strokeColor](../Classes/GMSPolyline.html#/c:objc(cs)GMSPolyline(py)strokeColor) is used for the\n entire line instead. \n\n Declaration \n Swift \n\n var spans: [../Classes/GMSStyleSpan.html]? { get set }\n\n Objective-C \n\n @property (nonatomic, copy, nullable) NSArray\u003c../Classes/GMSStyleSpan.html *\u003e *spans;"]]