GMSFeatureStyle Class Reference


Overview

Specifies how a map feature should appear when displayed on a map.

Inherited by GMSMutableFeatureStyle.

Public Member Functions

(instancetype) - initWithFillColor:strokeColor:strokeWidth:
 Initializes a new style.
(instancetype) - init
(GMSFeatureStyle *) - copy
 Returns a copy of this style.
(GMSMutableFeatureStyle *) - mutableCopy
 Returns a mutable copy of this style.

Static Public Member Functions

(instancetype) + styleWithFillColor:strokeColor:strokeWidth:
 Creates a new style.

Properties

UIColor * fillColor
 Specifies the fill color, including the alpha channel.
UIColor * strokeColor
 Specifies the border color, including the alpha channel.
CGFloat strokeWidth
 Specifies the border width, in screen points.
CGFloat pointRadius
 Specifies the radius of a point.

Member Function Documentation

+ (instancetype) styleWithFillColor: (nullable UIColor *)  fillColor
strokeColor: (nullable UIColor *)  strokeColor
strokeWidth: (CGFloat)  strokeWidth 

Creates a new style.

- (instancetype) initWithFillColor: (nullable UIColor *)  fillColor
strokeColor: (nullable UIColor *)  strokeColor
strokeWidth: (CGFloat)  strokeWidth 

Initializes a new style.

- (instancetype) init

Returns a copy of this style.

Returns a mutable copy of this style.


Property Documentation

- (UIColor*) fillColor [read, copy]

Specifies the fill color, including the alpha channel.

Implemented in GMSMutableFeatureStyle.

- (UIColor*) strokeColor [read, copy]

Specifies the border color, including the alpha channel.

Implemented in GMSMutableFeatureStyle.

- (CGFloat) strokeWidth [read, assign]

Specifies the border width, in screen points.

Implemented in GMSMutableFeatureStyle.

- (CGFloat) pointRadius [read, assign]

Specifies the radius of a point.

Only applies to point geometries.

Implemented in GMSMutableFeatureStyle.