AI-generated Key Takeaways
-
GMSTextureStyleis a style that applies a repeating image pattern to a polyline. -
It can be initialized using an image with
textureStyleWithImage:orinitWithImage:. -
The provided image will be used as a repeating texture along the polyline's path.
GMSTextureStyle
@interface GMSTextureStyle : GMSStampStyleA polyline style that draws a repeating image over a GMSStyleSpan.
-
Returns a texture stamp style with the given image.
Declaration
Objective-C
+ (nonnull instancetype)textureStyleWithImage:(nonnull UIImage *)image;Parameters
imageA
UIImageobject to use as the stamp image.Return Value
An initialized texture stamp style.
-
Returns an initialized texture stamp style with the given image.
Declaration
Swift
init(image: UIImage)Objective-C
- (nonnull instancetype)initWithImage:(nonnull UIImage *)image;Parameters
imageA
UIImageobject to use as the stamp image.Return Value
An initialized texture stamp style.