You're all set!

To start developing, please head over to our developer documentation.

Activate the Google Maps SDK for iOS

To get you started we'll guide you through the Google Developers Console to do a few things first:

  1. Create or choose a project
  2. Activate the Google Maps SDK for iOS
  3. Create appropriate keys
Continue

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...

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