GoogleNavigation Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
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 2025-08-27 UTC.
[null,null,["Last updated 2025-08-27 UTC."],[[["\u003cp\u003e\u003ccode\u003eGMSStampStyle\u003c/code\u003e is a base class for styling polylines with repeating images.\u003c/p\u003e\n"],["\u003cp\u003eIt utilizes an image, \u003ccode\u003estampImage\u003c/code\u003e, which is repeated along the polyline's stroke, oriented based on the line's direction.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003estampImage\u003c/code\u003e should ideally be square for optimal rendering and is scaled to the width of the polyline's stroke.\u003c/p\u003e\n"],["\u003cp\u003eInitialization of \u003ccode\u003eGMSStampStyle\u003c/code\u003e directly is unavailable; it's designed to be subclassed for specific implementations.\u003c/p\u003e\n"]]],[],null,["# GoogleNavigation Framework Reference\n\nGMSStampStyle\n=============\n\n @interface GMSStampStyle : NSObject\n\nThe abstract base class for polyline styles that draw a repeating image over a [GMSStyleSpan](../Classes/GMSStyleSpan.html).\n- `\n ``\n ``\n `\n\n ### [stampImage](#/c:objc(cs)GMSStampStyle(py)stampImage)\n\n `\n ` \n The image or texture that will repeated over a stroke.\n Note that this image will be compressed into a square - so for best results have a square image.\n The rendered stamps will be the width of the line that the [GMSStrokeStyle](../Classes/GMSStrokeStyle.html) is set on. The image\n will be oriented with the top of the image towards the start point, and the bottom of the image\n towards the end point. For example, if the underlying line has two points and the start point is\n directly above the endpoint, the stamp will appear in an upright orientation. \n\n #### Declaration\n\n Swift \n\n var stampImage: UIImage { get }\n\n Objective-C \n\n @property (nonatomic, readonly) UIImage *_Nonnull stampImage;\n\n- `\n ``\n ``\n `\n\n ### [-init](#/c:objc(cs)GMSStampStyle(im)init)\n\n `\n ` \n Unavailable \n\n #### Declaration\n\n Objective-C \n\n - (instancetype)init NS_UNAVAILABLE;"]]