New basemap styling is coming soon to Google Maps Platform. This update to map styling includes a new default color palette, modernized pins, and improvements to map experiences and usability. All map styles will be automatically updated in March 2025. For more information on availability and how to opt in earlier, see
New map style for Google Maps Platform.
GoogleMaps Framework Reference
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 2024-11-15 UTC.
[null,null,["Last updated 2024-11-15 UTC."],[[["`GMSTextureStyle` is a polyline style that applies a repeating image pattern along a path defined by `GMSStyleSpan`."],["It provides methods to create a texture style using a `UIImage` object as the repeating pattern."],["Both `textureStyleWithImage:` and `initWithImage:` methods initialize a texture stamp style with the given image."]]],[]]