總覽
保留折線自訂屬性的可變動資料物件。
公開成員函式 | |
(void) | - setTrafficColorForSpeed:color: |
設定指定速度類型的顏色。 | |
(UIColor *) | - trafficColorForSpeed: |
傳回指定速度類型的顏色。 | |
(執行個體類型) | - init |
使用預設值初始化物件:`strokeWidth:2.0f`、`strokeColor:[UIColor blueColor]`、`isVisible:YES`、`zIndex:10`、`isGeodesic:NO`、`isTrafficEnabled:NO。。 | |
資源 | |
CGFloat | strokeWidth |
螢幕點中的線條筆劃寬度。 | |
UIColor * | strokeColor |
用於指定折線中一或多個線段的顏色。 | |
BOOL | isVisible |
決定折線是否可見的布林值。 | |
int32_t | zIndex |
這個值決定折線的 Z 索引。 | |
BOOL | isGeodesic |
指出折線是否應繪製為測地線,而不是在麥卡托投影上繪製成直線。 | |
BOOL | isTrafficEnabled |
決定交通折線可見度的布林值。 |
成員函式說明文件
- (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] |
- (UIColor*) strokeColor [read, write, copy] |
- (BOOL) isVisible [read, write, assign] |
- (int32_t) zIndex [read, write, assign] |
- (BOOL) isGeodesic [read, write, assign] |
指出折線是否應繪製為測地線,而不是在麥卡托投影上繪製成直線。
- (BOOL) isTrafficEnabled [read, write, assign] |