GoogleNavigation Framework Reference

GMSFeatureStyle


@interface GMSFeatureStyle : NSObject <NSCopying, NSMutableCopying>

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

  • Creates a new style.

    Declaration

    Objective-C

    + (nonnull instancetype)styleWithFillColor:(nullable UIColor *)fillColor
                                   strokeColor:(nullable UIColor *)strokeColor
                                   strokeWidth:(CGFloat)strokeWidth;
  • Initializes a new style.

    Declaration

    Swift

    init(fill fillColor: UIColor?, stroke strokeColor: UIColor?, strokeWidth: CGFloat)

    Objective-C

    - (nonnull instancetype)initWithFillColor:(nullable UIColor *)fillColor
                                  strokeColor:(nullable UIColor *)strokeColor
                                  strokeWidth:(CGFloat)strokeWidth;
  • Initializes a default style.

    Declaration

    Swift

    init()

    Objective-C

    - (nonnull instancetype)init;
  • Specifies the fill color, including the alpha channel.

    Declaration

    Swift

    @NSCopying var fillColor: UIColor? { get }

    Objective-C

    @property (nonatomic, copy, readonly, nullable) UIColor *fillColor;
  • Specifies the border color, including the alpha channel.

    Declaration

    Swift

    @NSCopying var strokeColor: UIColor? { get }

    Objective-C

    @property (nonatomic, copy, readonly, nullable) UIColor *strokeColor;
  • Specifies the border width, in screen points.

    Declaration

    Swift

    var strokeWidth: CGFloat { get }

    Objective-C

    @property (nonatomic, readonly) CGFloat strokeWidth;
  • Specifies the radius of a point. Only applies to point geometries.

    Declaration

    Swift

    var pointRadius: CGFloat { get }

    Objective-C

    @property (nonatomic, readonly) CGFloat pointRadius;
  • Declaration

    Swift

    func copy() -> FeatureStyle

    Objective-C

    - (GMSFeatureStyle *)copy;
  • Declaration

    Swift

    func mutableCopy() -> MutableFeatureStyle

    Objective-C

    - (GMSMutableFeatureStyle *)mutableCopy;