Stay organized with collections Save and categorize content based on your preferences.
GMSStyleSpan@interface GMSStyleSpan : NSObject
Describes 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]
.
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]
.
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 style
of length one segment. Equivalent to [GMSStyleSpan spanWithStyle:style segments:1]
.
Objective-C
+ (nonnull instancetype)spanWithStyle:(nonnull GMSStrokeStyle *)style;
Factory returning a span with the given style
and length in number of segments. segments
must be greater than 0 (i.e. can’t be 0).
Objective-C
+ (nonnull instancetype)spanWithStyle:(nonnull GMSStrokeStyle *)style
segments:(double)segments;
The style of this span.
DeclarationObjective-C
@property (nonatomic, readonly) GMSStrokeStyle *_Nonnull style;
The length of this span in number of segments.
DeclarationSwift
var segments: Double { get }
Objective-C
@property (nonatomic, readonly) double segments;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-11-15 UTC.
[[["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."],[[["`GMSStyleSpan` defines the style for a section of a polyline, like color or pattern."],["It provides factory methods for creating spans with a solid color or a custom `GMSStrokeStyle`."],["You can specify the length of the span in number of segments."],["`GMSStyleSpan` has `style` and `segments` properties to access the span's characteristics."]]],[]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4