GoogleNavigation Framework Reference

  • 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

@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

    Declaration

    Swift

    var glyph: GMSPinImageGlyph? { get set }

    Objective-C

    @property (nonatomic, nullable) GMSPinImageGlyph *glyph;
  • 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;