GoogleNavigation Framework Reference
GMSPinImageOptions
@interface GMSPinImageOptions : NSObject
Provides pin image customization for an advanced marker.
-
An object representing a String or Image to replace the glyph on the marker
-
The color used to fill the marker shape with.
Declaration
Swift
var backgroundColor: UIColor? { get set }
Objective-C
@property (nonatomic, nullable) UIColor *backgroundColor;
-
The color used for the border of the marker shape.
Declaration
Swift
var borderColor: UIColor? { get set }
Objective-C
@property (nonatomic, nullable) UIColor *borderColor;
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."],[[["`GMSPinImageOptions` provides customization options for the image of advanced markers on a map."],["It allows developers to set a custom glyph (image or string) to replace the default marker icon."],["Developers can customize the marker's appearance by setting the background and border colors."]]],["`GMSPinImageOptions` customizes advanced marker pin images. Key actions include setting the `glyph`, which is a string or image replacing the marker's glyph. Users can also define the `backgroundColor` to fill the marker shape and the `borderColor` to outline the shape. These properties are accessible and modifiable in both Swift and Objective-C, enabling fine-grained control over the visual appearance of markers.\n"]]