概览
指定地图项在地图上的显示方式。
由 GMSMutableFeatureStyle 继承。
公共成员函数 | |
(instancetype) | - initWithFillColor:strokeColor:strokeWidth: |
初始化新样式。 | |
(instancetype) | - init |
(GMSFeatureStyle *) | - 复制 |
返回此样式的副本。 | |
(GMSMutableFeatureStyle *) | - mutableCopy |
返回此样式的可变副本。 | |
静态公共成员函数 | |
(instancetype) | + styleWithFillColor:strokeColor:strokeWidth: |
创建新的样式。 | |
属性 | |
UIColor * | fillColor |
指定填充颜色,包括 Alpha 通道。 | |
UIColor * | strokeColor |
指定边框颜色,包括 Alpha 通道。 | |
CGFloat | strokeWidth |
指定边框宽度(以屏幕点数为单位)。 | |
CGFloat | pointRadius |
指定点的半径。 |
成员函数文档
+ (instancetype) styleWithFillColor: | (nullable UIColor *) | fillColor | |
strokeColor: | (nullable UIColor *) | strokeColor | |
strokeWidth: | (CGFloat) | strokeWidth | |
创建新的样式。
- (instancetype) initWithFillColor: | (nullable UIColor *) | fillColor | |
strokeColor: | (nullable UIColor *) | strokeColor | |
strokeWidth: | (CGFloat) | strokeWidth | |
初始化新样式。
-(实例类型)init |
- (GMSFeatureStyle *) 副本 |
返回此样式的副本。
返回此样式的可变副本。
属性说明
- (UIColor*) fillColor [read, copy] |
指定填充颜色,包括 Alpha 通道。
在 GMSMutableFeatureStyle 中实现。
- (UIColor*) strokeColor [read, copy] |
指定边框颜色,包括 Alpha 通道。
在 GMSMutableFeatureStyle 中实现。
- (CGFloat) strokeWidth [read, assign] |
指定边框宽度(以屏幕点数为单位)。
在 GMSMutableFeatureStyle 中实现。
- (CGFloat) pointRadius [read, assign] |