AI-generated Key Takeaways
-
GMSTextureStyle
is a polyline style that applies a repeating image pattern along a path defined byGMSStyleSpan
. -
It provides methods to create a texture style using a
UIImage
object as the repeating pattern. -
Both
textureStyleWithImage:
andinitWithImage:
methods initialize a texture stamp style with the given image.
GMSTextureStyle
@interface GMSTextureStyle : GMSStampStyle
A 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
image
A
UIImage
object 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
image
A
UIImage
object to use as the stamp image.Return Value
An initialized texture stamp style.