AI-generated Key Takeaways
-
GMSStampStyle
is a base class for styling polylines with repeating images. -
It utilizes an image,
stampImage
, which is repeated along the polyline's stroke, oriented based on the line's direction. -
The
stampImage
should ideally be square for optimal rendering and is scaled to the width of the polyline's stroke. -
Initialization of
GMSStampStyle
directly is unavailable; it's designed to be subclassed for specific implementations.
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;
-
Unavailable
Declaration
Objective-C
- (instancetype)init NS_UNAVAILABLE;