New pricing and product changes will go into effect starting June 11, 2018. For more information, check out the Guide for Existing Users.

GMSStyleSpan Class Reference

GMSStyleSpan Class Reference

Overview

Describes the style for some region of a polyline.

Static Public Member Functions

(instancetype) + spanWithColor:
 Factory returning a solid color span of length one segment.
(instancetype) + spanWithColor:segments:
 Factory returning a solid color span with a given number of segments.
(instancetype) + spanWithStyle:
 Factory returning a span with the given style of length one segment.
(instancetype) + spanWithStyle:segments:
 Factory returning a span with the given style and length in number of segments.

Properties

GMSStrokeStylestyle
 The style of this span.
double segments
 The length of this span in number of segments.

Member Function Documentation

+ (instancetype) spanWithColor: (UIColor *)  color

Factory returning a solid color span of length one segment.

Equivalent to [GMSStyleSpan spanWithStyle:[GMSStrokeStyle solidColor:color] segments:1].

+ (instancetype) spanWithColor: (UIColor *)  color
segments: (double)  segments 

Factory returning a solid color span with a given number of segments.

Equivalent to [GMSStyleSpan spanWithStyle:[GMSStrokeStyle solidColor:color] segments:segments].

+ (instancetype) spanWithStyle: (GMSStrokeStyle *)  style

Factory returning a span with the given style of length one segment.

Equivalent to [GMSStyleSpan spanWithStyle:style segments:1].

+ (instancetype) spanWithStyle: (GMSStrokeStyle *)  style
segments: (double)  segments 

Factory returning a span with the given style and length in number of segments.

segments must be greater than 0 (i.e. can't be 0).


Property Documentation

- (GMSStrokeStyle*) style [read, assign]

The style of this span.

- (double) segments [read, assign]

The length of this span in number of segments.

Send feedback about...

Maps SDK for iOS
Maps SDK for iOS
Need help? Visit our support page.