GMTCMutablePolylineStyleOptions 類別參考資料

GMTCMutablePolylineStyleOptions 類別參考資料

總覽

保留折線自訂屬性的可變動資料物件。

繼承 GMTCPolylineStyleOptions

公開成員函式

(void) - setTrafficColorForSpeed:color:
 設定指定速度類型的顏色。
(UIColor *)- trafficColorForSpeed:
 傳回指定速度類型的顏色。
(執行個體類型)- init
 使用預設值初始化物件:`strokeWidth:2.0f`、`strokeColor:[UIColor blueColor]`、`isVisible:YES`、`zIndex:10`、`isGeodesic:NO`、`isTrafficEnabled:NO。。

資源

CGFloatstrokeWidth
 螢幕點中的線條筆劃寬度。
UIColor * strokeColor
 用於指定折線中一或多個線段的顏色。
BOOLisVisible
 決定折線是否可見的布林值。
int32_t zIndex
 這個值決定折線的 Z 索引。
BOOLisGeodesic
 指出折線是否應繪製為測地線,而不是在麥卡托投影上繪製成直線。
BOOLisTrafficEnabled
 決定交通折線可見度的布林值。

成員函式說明文件

- (void) setTrafficColorForSpeed: (GMTSSpeedType)。 speedType
顏色: (nullable UIColor *)  color

設定指定速度類型的顏色。

如果顏色設為 NULL,系統會使用速度類型的預設顏色。

參數:
speedType要套用顏色的速度類型。
顏色要套用至速度類型的顏色。
- (UIColor *) trafficColorForSpeed: (GMTSSpeedType)。 speedType

傳回指定速度類型的顏色。

傳回:
如果已啟用車流量且未設定顏色,則傳回指定速度的預設顏色。在未啟用車流量的情況下,系統會傳回預設的筆劃顏色。
- (instancetype) init

使用預設值初始化物件:`strokeWidth:2.0f`、`strokeColor:[UIColor blueColor]`、`isVisible:YES`、`zIndex:10`、`isGeodesic:NO`、`isTrafficEnabled:NO`。


屬性說明文件

- (CGFloat) strokeWidth [read, write, assign]

螢幕點中的線條筆劃寬度。

如果在這裡設定無效的值 (小於 0.0f),系統會將預設值設為 2.0f。

實作 GMTCPolylineStyleOptions

- (UIColor*) strokeColor [read, write, copy]

用於指定折線中一或多個線段的顏色。

如果設為 NULL,系統會將它設為 [UIColor blueColor] 的預設值。

實作 GMTCPolylineStyleOptions

- (BOOL) isVisible [read, write, assign]

決定折線是否可見的布林值。

預設值為 YES。

實作 GMTCPolylineStyleOptions

- (int32_t) zIndex [read, write, assign]

這個值決定折線的 Z 索引。

預設值為 10。

實作 GMTCPolylineStyleOptions

- (BOOL) isGeodesic [read, write, assign]

指出折線是否應繪製為測地線,而不是在麥卡托投影上繪製成直線。

實作 GMTCPolylineStyleOptions

- (BOOL) isTrafficEnabled [read, write, assign]

決定交通折線可見度的布林值。

預設值為 NO。

實作 GMTCPolylineStyleOptions