總覽
包含折線自訂屬性的資料物件。
由 GMTCMutablePolylineStyleOptions 繼承。
公開成員函式 | |
(UIColor *) | - trafficColorForSpeed: |
傳回指定速度類型的顏色。 | |
(instancetype) | - 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 |
決定車流量折線的顯示設定。 |
成員函式說明文件
- (UIColor *) trafficColorForSpeed: | (GMTSSpeedType)。 | speedType |
傳回指定速度類型的顏色。
- 傳回:
- 如果已啟用流量,且未設定顏色,系統會傳回指定速度的預設顏色。如果路況未啟用,則傳回預設的筆劃顏色。
- (執行個體類型) init |
使用預設值初始化物件:`strokeWidth:2.0f`、`strokeColor:[UIColor blueColor]`、`isVisible:YES`、`zIndex:10`、`isGeodesic:NO`、`isTrafficEnabled:NO`。
資源說明文件
- (CGFloat) strokeWidth [read, assign] |
- (UIColor*) strokeColor [read, copy] |
- (BOOL) isVisible [read, assign] |
- (int32_t) zIndex [read, assign] |
- (BOOL) isGeodesic [read, assign] |
指出折線的線段是否應以測地線繪製,而非繪製麥卡托投影中的直線。
- (BOOL) isTrafficEnabled [read, assign] |