GMTCPolylineStyleOptions 類別參考資料

GMTCPolylineStyleOptions 類別參考資料

總覽

包含折線自訂屬性的資料物件。

沿用 GMTCImmutableData

GMTCMutablePolylineStyleOptions 繼承。

公開成員函式

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

資源

CGFloatstrokeWidth
 螢幕點中的線條筆劃寬度。
UIColor * strokeColor
 用於指定折線的一或多個線段的顏色。
BOOLisVisible
 決定折線是否顯示設定的布林值。
int32_tzIndex
 決定折線 Z 索引的值。
BOOLisGeodesic
 指出折線的線段是否應以測地線繪製,而非繪製麥卡托投影中的直線。
BOOLisTrafficEnabled
 決定車流量折線的顯示設定。

成員函式說明文件

- (UIColor *) trafficColorForSpeed: (GMTSSpeedType)。 speedType

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

傳回:
如果已啟用流量,且未設定顏色,系統會傳回指定速度的預設顏色。如果路況未啟用,則傳回預設的筆劃顏色。
- (執行個體類型) init

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


資源說明文件

- (CGFloat) strokeWidth [read, assign]

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

預設值為 2.0f。

GMTCMutablePolylineStyleOptions 中實作。

- (UIColor*) strokeColor [read, copy]

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

預設為 [UIColor blueColor]。

GMTCMutablePolylineStyleOptions 中實作。

- (BOOL) isVisible [read, assign]

決定折線是否顯示設定的布林值。

預設為 YES。

GMTCMutablePolylineStyleOptions 中實作。

- (int32_t) zIndex [read, assign]

決定折線 Z 索引的值。

預設值為 10。

GMTCMutablePolylineStyleOptions 中實作。

- (BOOL) isGeodesic [read, assign]

指出折線的線段是否應以測地線繪製,而非繪製麥卡托投影中的直線。

GMTCMutablePolylineStyleOptions 中實作。

- (BOOL) isTrafficEnabled [read, assign]

決定車流量折線的顯示設定。

預設值為 NO。

GMTCMutablePolylineStyleOptions 中實作。