GMSStrokeStyle Class Reference

GMSStrokeStyle Class Reference

Overview

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

Static Public Member Functions

(instancetype) + solidColor:
 Creates a solid color stroke style.
(instancetype) + gradientFromColor:toColor:
 Creates a gradient stroke style interpolating from fromColor to toColor.

Properties

GMSStampStylestampStyle
 A repeated image over the stroke to allow a user to set a 2D texture on top of a stroke.

Member Function Documentation

+ (instancetype) solidColor: (UIColor *)  color

Creates a solid color stroke style.

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

Creates a gradient stroke style interpolating from fromColor to toColor.


Property Documentation

- (GMSStampStyle*) stampStyle [read, write, assign]

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.

Known issue: If this is a texture stamp set on a gradient stroke, only one of the stroke colors will be used. To still have a gradient, make the stroke color clear here, and have a separate polyline with the gradient below this line.