New basemap styling is coming soon to Google Maps Platform. This update to map styling includes a new default color palette, modernized pins, and improvements to map experiences and usability. All map styles will be automatically updated in March 2025. For more information on availability and how to opt in earlier, see
New map style for Google Maps Platform.
GoogleMaps Framework Reference
GMSMutableFeatureStyle
Mutable version of GMSFeatureStyle.
-
Declaration
Swift
@NSCopying var fillColor: UIColor? { get set }
Objective-C
@property(nonatomic, readwrite, copy, nullable) UIColor *fillColor
-
Declaration
Swift
@NSCopying var strokeColor: UIColor? { get set }
Objective-C
@property(nonatomic, readwrite, copy, nullable) UIColor *strokeColor
-
Declaration
Swift
var strokeWidth: CGFloat { get set }
Objective-C
@property(nonatomic, readwrite) CGFloat strokeWidth
-
Declaration
Swift
var pointRadius: CGFloat { get set }
Objective-C
@property(nonatomic, readwrite) CGFloat pointRadius
-
Creates a new mutable style.
Declaration
Objective-C
+ (nonnull instancetype)style;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-11-15 UTC.
[null,null,["Last updated 2024-11-15 UTC."],[[["`GMSMutableFeatureStyle` is a mutable version of `GMSFeatureStyle`, allowing for modifications to its properties."],["It provides properties to customize the fill color (`fillColor`), stroke color (`strokeColor`), stroke width (`strokeWidth`), and point radius (`pointRadius`) of features."],["You can create a new mutable style instance using the `+style` method."]]],["GMSMutableFeatureStyle is a mutable version of GMSFeatureStyle. It allows setting the `fillColor` and `strokeColor` using UIColor, and `strokeWidth` and `pointRadius` using CGFloat. It offers properties that can be set to modify the style. `+style` provides a method to create a new mutable style. The properties are accessible in both Swift and Objective-C.\n"]]