Stay organized with collections Save and categorize content based on your preferences.
GMSPolylineGMSPolyline
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 path that describes this polyline.
DeclarationSwift
@NSCopying var path: GMSPath? { get set }
Objective-C
@property (nonatomic, copy, nullable) GMSPath *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 UIColor
used to render the polyline. Defaults to [UIColor blueColor]
.
Swift
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;
Convenience constructor for GMSPolyline
for a particular path. Other properties will have default values.
Swift
convenience init(path: GMSPath?)
Objective-C
+ (nonnull instancetype)polylineWithPath:(nullable GMSPath *)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.
Objective-C
@property (nonatomic, copy, nullable) NSArray<GMSStyleSpan *> *spans;
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."],[[["`GMSPolyline` is an object used to represent a line drawn on a map, defined by a series of points called a path."],["You can customize the appearance of the polyline, such as its color, width, and whether it follows the Earth's curvature (geodesic)."],["Polylines can have styled segments using `GMSStyleSpan` allowing for variations in color or other visual properties along the line's length."],["If no style spans are provided, the entire polyline is rendered with the `strokeColor` property, defaulting to blue."],["A convenience constructor `polylineWithPath:` simplifies the creation of a basic polyline with default settings."]]],[]]
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