Navigation SDK is currently available only to select customers. Contact sales to learn more.

GMSStrokeStyle Class Reference

Stay organized with collections Save and categorize content based on your preferences.
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.