Stay organized with collections Save and categorize content based on your preferences.
GMSSpriteStyleDescribes the drawing style for a stamp image over a GMSStyleSpan
.
Note
Only supports transparent background. If any color is set to the GMSStyleSpan
it will only be treated as a fallback.
Note
Use of GMSSpriteStyle
requires Metal rendering framework. See GMSServices::setMetalRendererEnabled:(BOOL)
to learn how to enable Metal. If GMSStyleSpan
is added to a map without Metal being enabled, the stamp will not render and instead the polyline span will attempt to fallback to any set color. If no color is set, it will fallback to the default polyline color, [UIColor blueColor].
Note
Use GMSMapView::mapCapabilities
property to query if a GMSMapView
supports GMSSpriteStyle
.
Returns a sprite stamp style with the given image.
DeclarationObjective-C
+ (nonnull instancetype)spriteStyleWithImage:(nonnull UIImage *)image;
Parameters image
A UIImage
object to use as the stamp image.
An initialized sprite stamp style.
Returns an initialized sprite stamp style with the given image.
DeclarationSwift
init(image: UIImage)
Objective-C
- (nonnull instancetype)initWithImage:(nonnull UIImage *)image;
Parameters image
A UIImage
object to use as the stamp image.
An initialized sprite 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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-11-15 UTC."],[[["`GMSSpriteStyle` defines how stamp images are drawn over `GMSStyleSpan` on a map, using transparent backgrounds."],["It requires enabling Metal rendering framework through `GMSServices::setMetalRendererEnabled:(BOOL)` for proper functionality."],["If Metal is not enabled, the stamp might not render and the `GMSStyleSpan` will fallback to its color or a default color."],["You can create a `GMSSpriteStyle` instance using `spriteStyleWithImage:` or `initWithImage:` by providing a `UIImage`."],["`GMSMapView::mapCapabilities` can be used to check if a `GMSMapView` supports `GMSSpriteStyle`."]]],[]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4