# GoogleMaps Framework Reference

# GMSPinImage

    @interface GMSPinImage : UIImage

Provides a custom pin image for an advanced marker.
- `


  ### [-init](https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Classes/GMSPinImage#/c:objc(cs)GMSPinImage(im)init)


  ` Unavailable

  #### Declaration

  Objective-C

      - (instancetype)init NS_UNAVAILABLE;

- `


  ### [+pinImageWithOptions:](https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Classes/GMSPinImage#/c:objc(cs)GMSPinImage(cm)pinImageWithOptions:)


  ` 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: https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Classes/GMSPinImageOptions.html)

  Objective-C

      + (nonnull GMSPinImage *)pinImageWithOptions:
          (nonnull https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Classes/GMSPinImageOptions.html *)options;

  #### Parameters

  |---|---|
  | ` options ` | A `https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Classes/GMSPinImageOptions.html` object to use to customize the marker image. |

  #### Return Value

  An image configured with the provided options.