pending_actions运输和物流文档即将弃用。您可在
移动服务网站上找到更新后的文档。
GMTCPolygonStyleOptions 类参考
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
概览
继承 GMTCImmutableData。
由 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 |
| 用于确定路况多段线可见性的布尔值。
|
成员函数文档
返回给定速度类型的颜色。
- 返回:
- 如果启用了路况信息,但未设置颜色,则会返回给定速度对应的默认颜色。如果未启用流量,则返回默认描边颜色。
使用以下默认值初始化对象:`strokeWidth:2.0f`、`strokeColor:[UIColor blueColor]`、`isVisible:YES`、`zIndex:10`、`isGeodesic:NO`、`isTrafficEnabled:NO`。
属性说明
- (int32_t) zIndex [read, assign] |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-03-28。
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"没有我需要的信息"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"太复杂/步骤太多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"内容需要更新"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻译问题"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/代码问题"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"易于理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"解决了我的问题"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]
{
"last_modified": "最后更新时间 (UTC):2024-03-28。",
"state": ""
}