GoogleNavigation 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 style that applies a repeating image pattern to a polyline.\u003c/p\u003e\n"],["\u003cp\u003eIt can be initialized using an image with \u003ccode\u003etextureStyleWithImage:\u003c/code\u003e or \u003ccode\u003einitWithImage:\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe provided image will be used as a repeating texture along the polyline's path.\u003c/p\u003e\n"]]],[],null,["# GoogleNavigation 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."]]