GoogleMaps Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
GMSTextureStyle
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.
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\u003eGMSTextureStyle\u003c/code\u003e is a polyline style that applies a repeating image pattern along a path defined by \u003ccode\u003eGMSStyleSpan\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt provides methods to create a texture style using a \u003ccode\u003eUIImage\u003c/code\u003e object as the repeating pattern.\u003c/p\u003e\n"],["\u003cp\u003eBoth \u003ccode\u003etextureStyleWithImage:\u003c/code\u003e and \u003ccode\u003einitWithImage:\u003c/code\u003e methods initialize a texture stamp style with the given image.\u003c/p\u003e\n"]]],[],null,["# GoogleMaps Framework Reference\n\nGMSTextureStyle\n===============\n\n @interface GMSTextureStyle : ../Classes/GMSStampStyle.html\n\nA polyline style that draws a repeating image over a [GMSStyleSpan](../Classes/GMSStyleSpan.html).\n- `\n ``\n ``\n `\n\n ### [+textureStyleWithImage:](#/c:objc(cs)GMSTextureStyle(cm)textureStyleWithImage:)\n\n `\n ` \n Returns a texture stamp style with the given image. \n\n #### Declaration\n\n Objective-C \n\n + (nonnull instancetype)textureStyleWithImage:(nonnull UIImage *)image;\n\n #### Parameters\n\n |---------------|-----------------------------------------------|\n | ` `*image*` ` | A `UIImage` object to use as the stamp image. |\n\n #### Return Value\n\n An initialized texture stamp style.\n- `\n ``\n ``\n `\n\n ### [-initWithImage:](#/c:objc(cs)GMSTextureStyle(im)initWithImage:)\n\n `\n ` \n Returns an initialized texture stamp style with the given image. \n\n #### Declaration\n\n Swift \n\n init(image: UIImage)\n\n Objective-C \n\n - (nonnull instancetype)initWithImage:(nonnull UIImage *)image;\n\n #### Parameters\n\n |---------------|-----------------------------------------------|\n | ` `*image*` ` | A `UIImage` object to use as the stamp image. |\n\n #### Return Value\n\n An initialized texture stamp style."]]