New basemap styling is coming soon to Google Maps Platform. This update to map styling includes a new default color palette, modernized pins, and improvements to map experiences and usability. All map styles will be automatically updated in March 2025. For more information on availability and how to opt in earlier, see
New map style for Google Maps Platform.
GoogleMaps Framework Reference
GMSStampStyle
@interface GMSStampStyle : NSObject
The abstract base class for polyline styles that draw a repeating image over a GMSStyleSpan
.
-
The image or texture that will repeated over a stroke.
Note that this image will be compressed into a square - so for best results have a square image.
The rendered stamps will be the width of the line that the GMSStrokeStyle
is set on. The image
will be oriented with the top of the image towards the start point, and the bottom of the image
towards the end point. For example, if the underlying line has two points and the start point is
directly above the endpoint, the stamp will appear in an upright orientation.
Declaration
Swift
var stampImage: UIImage { get }
Objective-C
@property (nonatomic, readonly) UIImage *_Nonnull stampImage;
-
Declaration
Objective-C
- (instancetype)init NS_UNAVAILABLE;
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.
[null,null,["Last updated 2024-11-15 UTC."],[[["`GMSStampStyle` is a base class for styling polylines with repeating images."],["It utilizes a `stampImage` which is compressed into a square and repeated along the polyline's stroke."],["The `stampImage` is oriented based on the polyline's start and end points, with the top of the image facing the start point."],["`GMSStampStyle` has an unavailable init method, indicating it's an abstract class meant to be subclassed."]]],[]]