# GoogleMaps Framework Reference

# GMSSpriteStyle

    @interface GMSSpriteStyle : https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Classes/GMSStampStyle.html

Describes the drawing style for a stamp image over a `https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Classes/GMSStyleSpan.html`.
Note

Only supports transparent background. If any color is set to the `https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Classes/GMSStyleSpan.html` it will
only be treated as a fallback.
Note

Use of `GMSSpriteStyle` requires Metal rendering framework. See
`GMSServices::setMetalRendererEnabled:(BOOL)` to learn how to enable Metal. If `https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Classes/GMSStyleSpan.html` is
added to a map without Metal being enabled, the stamp will not render and instead the polyline
span will attempt to fallback to any set color. If no color is set, it will fallback to the
default polyline color, \[UIColor blueColor\].
Note

Use `GMSMapView::mapCapabilities` property to query if a `https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Classes/GMSMapView.html` supports
`GMSSpriteStyle`.
- `


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


  ` Returns a sprite stamp style with the given image.

  #### Declaration

  Objective-C

      + (nonnull instancetype)spriteStyleWithImage:(nonnull UIImage *)image;

  #### Parameters

  |---|---|
  | ` image ` | A `UIImage` object to use as the stamp image. |

  #### Return Value

  An initialized sprite stamp style.
- `


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


  ` Returns an initialized sprite stamp style with the given image.

  #### Declaration

  Swift

      init(image: UIImage)

  Objective-C

      - (nonnull instancetype)initWithImage:(nonnull UIImage *)image;

  #### Parameters

  |---|---|
  | ` image ` | A `UIImage` object to use as the stamp image. |

  #### Return Value

  An initialized sprite stamp style.