GMSFeatureStyle 類別參考資料

GMSFeatureStyle 類別參考資料

總覽

指定地圖項目在地圖上的顯示方式。

被繼承 GMSMutableFeatureStyle

公開成員函式

(instancetype)- initWithFillColor:strokeColor:strokeWidth:
 初始化新樣式。
(instancetype)- init
 初始化預設樣式。
(GMSFeatureStyle *)- 複製
 傳回此樣式的副本。
(GMSMutableFeatureStyle *)- mutableCopy
 傳回此樣式的可變動副本。

靜態公開成員函式

(instancetype)+ styleWithFillColor:strokeColor:strokeWidth:
 建立新樣式。

資源

UIColor * fillColor
 指定填滿顏色,包括 Alpha 通道。
UIColor * strokeColor
 指定邊框顏色,包括 Alpha 通道。
CGFloatstrokeWidth
 指定螢幕點中的框線寬度。
CGFloatpointRadius
 指定點的半徑。

成員職能說明文件

+ (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

初始化預設樣式。

傳回此樣式的副本。

傳回此樣式的可變動副本。


屬性說明文件

- (UIColor*) fillColor [read, copy]

指定填滿顏色,包括 Alpha 通道。

實作於 GMSMutableFeatureStyle 中。

- (UIColor*) strokeColor [read, copy]

指定邊框顏色,包括 Alpha 通道。

實作於 GMSMutableFeatureStyle 中。

- (CGFloat) strokeWidth [read, assign]

指定螢幕點中的框線寬度。

實作於 GMSMutableFeatureStyle 中。

- (CGFloat) pointRadius [read, assign]

指定點的半徑。

僅適用於點幾何圖形。

實作於 GMSMutableFeatureStyle 中。