GMSStyleSpan
@interface GMSStyleSpan : NSObjectDescribes the style for some region of a polyline.
-
Factory returning a solid color span of length one segment. Equivalent to
[GMSStyleSpan spanWithStyle:[GMSStrokeStyle solidColor:color] segments:1].Declaration
Swift
convenience init(color: UIColor)Objective-C
+ (nonnull instancetype)spanWithColor:(nonnull UIColor *)color; -
Factory returning a solid color span with a given number of segments. Equivalent to
[GMSStyleSpan spanWithStyle:[GMSStrokeStyle solidColor:color] segments:segments].Declaration
Swift
convenience init(color: UIColor, segments: Double)Objective-C
+ (nonnull instancetype)spanWithColor:(nonnull UIColor *)color segments:(double)segments; -
Factory returning a span with the given
styleof length one segment. Equivalent to[GMSStyleSpan spanWithStyle:style segments:1].Declaration
Swift
convenience init(style: GMSStrokeStyle)Objective-C
+ (nonnull instancetype)spanWithStyle:(nonnull GMSStrokeStyle *)style; -
Factory returning a span with the given
styleand length in number of segments.segmentsmust be greater than 0 (i.e. can’t be 0).Declaration
Swift
convenience init(style: GMSStrokeStyle, segments: Double)Objective-C
+ (nonnull instancetype)spanWithStyle:(nonnull GMSStrokeStyle *)style segments:(double)segments; -
The style of this span.
Declaration
Swift
var style: GMSStrokeStyle { get }Objective-C
@property (nonatomic, readonly) GMSStrokeStyle *_Nonnull style; -
The length of this span in number of segments.
Declaration
Swift
var segments: Double { get }Objective-C
@property (nonatomic, readonly) double segments;