GoogleMaps Framework Reference

  • GMSPinImage provides custom pin images for advanced markers in Google Maps.

  • It is initialized using pinImageWithOptions: with a GMSPinImageOptions object for customization.

  • You can use the resulting image as a standalone UIImage or as an icon for an advanced marker.

GMSPinImage

@interface GMSPinImage : UIImage

Provides a custom pin image for an advanced marker.

  • Unavailable

    Declaration

    Objective-C

    - (instancetype)init NS_UNAVAILABLE;
  • Returns an image style with the given pin image options that can be used as a standalone UIImage, or as the icon of an Advanced Marker only.

    Declaration

    Swift

    /*not inherited*/ init(options: GMSPinImageOptions)

    Objective-C

    + (nonnull GMSPinImage *)pinImageWithOptions:
        (nonnull GMSPinImageOptions *)options;

    Parameters

    options

    A GMSPinImageOptions object to use to customize the marker image.

    Return Value

    An image configured with the provided options.