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