GoogleNavigation Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
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 2025-08-27 UTC.
[null,null,["Last updated 2025-08-27 UTC."],[[["\u003cp\u003e\u003ccode\u003eGMSPinImageOptions\u003c/code\u003e provides customization options for the image of advanced markers on a map.\u003c/p\u003e\n"],["\u003cp\u003eIt allows developers to set a custom glyph (image or string) to replace the default marker icon.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can customize the marker's appearance by setting the background and border colors.\u003c/p\u003e\n"]]],["`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"],null,["# GoogleNavigation Framework Reference\n\nGMSPinImageOptions\n==================\n\n @interface GMSPinImageOptions : NSObject\n\nProvides pin image customization for an advanced marker.\n- `\n ``\n ``\n `\n\n ### [glyph](#/c:objc(cs)GMSPinImageOptions(py)glyph)\n\n `\n ` \n An object representing a String or Image to replace the glyph on the marker \n\n #### Declaration\n\n Swift \n\n var glyph: ../Classes/GMSPinImageGlyph.html? { get set }\n\n Objective-C \n\n @property (nonatomic, nullable) ../Classes/GMSPinImageGlyph.html *glyph;\n\n- `\n ``\n ``\n `\n\n ### [backgroundColor](#/c:objc(cs)GMSPinImageOptions(py)backgroundColor)\n\n `\n ` \n The color used to fill the marker shape with. \n\n #### Declaration\n\n Swift \n\n var backgroundColor: UIColor? { get set }\n\n Objective-C \n\n @property (nonatomic, nullable) UIColor *backgroundColor;\n\n- `\n ``\n ``\n `\n\n ### [borderColor](#/c:objc(cs)GMSPinImageOptions(py)borderColor)\n\n `\n ` \n The color used for the border of the marker shape. \n\n #### Declaration\n\n Swift \n\n var borderColor: UIColor? { get set }\n\n Objective-C \n\n @property (nonatomic, nullable) UIColor *borderColor;"]]