Factory returning a solid color span with a given number of segments. Equivalent to
[GMSStyleSpan spanWithStyle:[GMSStrokeStyle solidColor:color] segments:segments].
[[["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\u003eGMSStyleSpan\u003c/code\u003e defines the style for a section of a polyline, like color or pattern.\u003c/p\u003e\n"],["\u003cp\u003eIt provides factory methods for creating spans with a solid color or a custom \u003ccode\u003eGMSStrokeStyle\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eYou can specify the length of the span in number of segments.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGMSStyleSpan\u003c/code\u003e has \u003ccode\u003estyle\u003c/code\u003e and \u003ccode\u003esegments\u003c/code\u003e properties to access the span's characteristics.\u003c/p\u003e\n"]]],[],null,["GMSStyleSpan \n\n @interface GMSStyleSpan : NSObject\n\nDescribes the style for some region of a polyline.\n- `\n ``\n ``\n `\n\n [+spanWithColor:](#/c:objc(cs)GMSStyleSpan(cm)spanWithColor:)`\n ` \n Factory returning a solid color span of length one segment. Equivalent to\n `[GMSStyleSpan spanWithStyle:[GMSStrokeStyle solidColor:color] segments:1]`. \n\n Declaration \n Swift \n\n convenience init(color: UIColor)\n\n Objective-C \n\n + (nonnull instancetype)spanWithColor:(nonnull UIColor *)color;\n\n- `\n ``\n ``\n `\n\n [+spanWithColor:segments:](#/c:objc(cs)GMSStyleSpan(cm)spanWithColor:segments:)`\n ` \n Factory returning a solid color span with a given number of segments. Equivalent to\n `[GMSStyleSpan spanWithStyle:[GMSStrokeStyle solidColor:color] segments:segments]`. \n\n Declaration \n Swift \n\n convenience init(color: UIColor, segments: Double)\n\n Objective-C \n\n + (nonnull instancetype)spanWithColor:(nonnull UIColor *)color\n segments:(double)segments;\n\n- `\n ``\n ``\n `\n\n [+spanWithStyle:](#/c:objc(cs)GMSStyleSpan(cm)spanWithStyle:)`\n ` \n Factory returning a span with the given [style](../Classes/GMSStyleSpan.html#/c:objc(cs)GMSStyleSpan(py)style) of length one segment. Equivalent to\n `[GMSStyleSpan spanWithStyle:style segments:1]`. \n\n Declaration \n Swift \n\n convenience init(style: ../Classes/GMSStrokeStyle.html)\n\n Objective-C \n\n + (nonnull instancetype)spanWithStyle:(nonnull ../Classes/GMSStrokeStyle.html *)style;\n\n- `\n ``\n ``\n `\n\n [+spanWithStyle:segments:](#/c:objc(cs)GMSStyleSpan(cm)spanWithStyle:segments:)`\n ` \n Factory returning a span with the given [style](../Classes/GMSStyleSpan.html#/c:objc(cs)GMSStyleSpan(py)style) and length in number of segments. [segments](../Classes/GMSStyleSpan.html#/c:objc(cs)GMSStyleSpan(py)segments) must\n be greater than 0 (i.e. can't be 0). \n\n Declaration \n Swift \n\n convenience init(style: ../Classes/GMSStrokeStyle.html, segments: Double)\n\n Objective-C \n\n + (nonnull instancetype)spanWithStyle:(nonnull ../Classes/GMSStrokeStyle.html *)style\n segments:(double)segments;\n\n- `\n ``\n ``\n `\n\n [style](#/c:objc(cs)GMSStyleSpan(py)style)`\n ` \n The style of this span. \n\n Declaration \n Swift \n\n var style: ../Classes/GMSStrokeStyle.html { get }\n\n Objective-C \n\n @property (nonatomic, readonly) ../Classes/GMSStrokeStyle.html *_Nonnull style;\n\n- `\n ``\n ``\n `\n\n [segments](#/c:objc(cs)GMSStyleSpan(py)segments)`\n ` \n The length of this span in number of segments. \n\n Declaration \n Swift \n\n var segments: Double { get }\n\n Objective-C \n\n @property (nonatomic, readonly) double segments;"]]