# GoogleMaps Framework Reference

# GMSStrokeStyle

    @interface GMSStrokeStyle : NSObject

Describes the drawing style for one-dimensional entities such as polylines.
- `


  ### [stampStyle](https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Classes/GMSStrokeStyle#/c:objc(cs)GMSStrokeStyle(py)stampStyle)


  ` A repeated image over the stroke to allow a user to set a 2D texture on top of a stroke.
  If the image has transparent or semi-transparent portions, the underlying stroke color will show
  through in those places. Solid portions of the stamp will completely cover the base stroke.

  #### Declaration

  Swift

      var stampStyle: https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Classes/GMSStampStyle.html? { get set }

  Objective-C

      @property (nonatomic, strong, nullable) https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Classes/GMSStampStyle.html *stampStyle;

- `


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


  ` Creates a solid color stroke style.

  #### Declaration

  Swift

      class func solidColor(_ color: UIColor) -> Self

  Objective-C

      + (nonnull instancetype)solidColor:(nonnull UIColor *)color;

- `


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


  ` Creates a gradient stroke style interpolating from `fromColor` to `toColor`.

  #### Declaration

  Swift

      class func gradient(from fromColor: UIColor, to toColor: UIColor) -> Self

  Objective-C

      + (nonnull instancetype)gradientFromColor:(nonnull UIColor *)fromColor
                                        toColor:(nonnull UIColor *)toColor;

- `


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


  ` Creates a transparent stroke style and sets the stampStyle.

  #### Declaration

  Swift

      class func transparentStroke(withStamp stampStyle: https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Classes/GMSStampStyle.html) -> Self

  Objective-C

      + (nonnull instancetype)transparentStrokeWithStampStyle:
          (nonnull https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Classes/GMSStampStyle.html *)stampStyle;