BaiduMap_IOSSDK_v6.6.6_Docs 6.6.6

载入中...
搜索中...
未找到
构造函数 | 类方法 | 属性 | 所有成员列表
BMKTraceOverlay类 参考

`#include <BMKTraceOverlay.h>`

类 BMKTraceOverlay 继承关系图:

## 构造函数
(void) | - pauseTraceOverlayDraw
| 暂停轨迹动画绘制 since 6.5.9
(void) | - resumeTraceOverlayDraw
| 继续轨迹动画绘制 since 6.5.9
(BOOL) | - updateTraceOverlayCoordinates:count:option:
(BOOL) | - updateTraceOverlayPoints:count:option:
构造函数 继承自 BMKMultiPoint
(void) | - getCoordinates:range:
构造函数 继承自 <BMKAnnotation>
(NSString *) | - title
| 获取annotation标题
(NSString *) | - subtitle
| 获取annotation副标题
(void) | - setCoordinate:
构造函数 继承自 <BMKOverlay>
(BOOL) | - intersectsMapRect:

## 类方法
(nullable instancetype) | + traceOverlayWithCoordinates:count:option:
(nullable instancetype) | + traceOverlayWithPoints:count:option:

## 属性
id< BMKTraceOverlayAnimationDelegate > | delegate
| 动画代理
BMKTraceOverlayOption * | overlayOption
| 动画参数
BOOL | isGradientColor
| 是否使用渐变色 默认为NO since 6.5.7
BOOL | isTrackBloom
| 是否使用发光效果 默认为NO since 6.5.7
CGFloat | bloomSpeed
BOOL | onPauseStatus
| 轨迹动画暂停状态 since 6.5.9
BOOL | isStatusChanged
| 当前轨迹的状态是否改变，标记轨迹是否从运行状态进入暂停状态。 since 6.5.9
BOOL | isThined
| 是否需要对TraceOverlay坐标数据进行抽稀，默认为YES
BOOL | isCornerSmooth
| 是否需要对TraceOverlay坐标数据进拐角平滑，默认为YES
属性 继承自 BMKMultiPoint
BMKMapPoint * | points
| 坐标点数组
NSUInteger | pointCount
| 坐标点的个数
属性 继承自 BMKShape
NSString * | title
| 要显示的标题；注意：如果不设置title,无法点击annotation,也无法使用回调函数；
NSString * | subtitle
| 要显示的副标题
属性 继承自 <BMKAnnotation>
CLLocationCoordinate2D | coordinate
| 标注view中心坐标.
属性 继承自 <BMKOverlay>
CLLocationCoordinate2D | coordinate
| 返回区域中心坐标.
BMKMapRect | boundingMapRect
| 返回区域外接矩形

## 额外继承的成员函数
Protected 属性 继承自 BMKMultiPoint
package BMKMapPoint * | _points
NSUInteger | _pointCount
BMKMapRect | _boundingRect

## 函数文档

## ◆ pauseTraceOverlayDraw

- (void) pauseTraceOverlayDraw |  |  |

暂停轨迹动画绘制 since 6.5.9

## ◆ resumeTraceOverlayDraw

- (void) resumeTraceOverlayDraw |  |  |

继续轨迹动画绘制 since 6.5.9

## ◆ traceOverlayWithCoordinates:count:option:

+ (nullable instancetype) traceOverlayWithCoordinates: |  | (CLLocationCoordinate2D *) | coords
count: |  | (NSUInteger) | count
option: |  | (BMKTraceOverlayOption *) | overlayOption

创建BMKTraceOverlay

参数

  coords | 经纬度坐标数组
  count | 经纬度坐标数组大小
  overlayOption | 动画参数

## ◆ traceOverlayWithPoints:count:option:

+ (nullable instancetype) traceOverlayWithPoints: |  | (BMKMapPoint *) | points
count: |  | (NSUInteger) | count
option: |  | (BMKTraceOverlayOption *) | overlayOption

创建BMKTraceOverlay

参数

  points | 直角坐标数组
  count | 直角坐标数组大小
  overlayOption | 动画参数

## ◆ updateTraceOverlayCoordinates:count:option:

- (BOOL) updateTraceOverlayCoordinates: |  | (CLLocationCoordinate2D *) | coords
count: |  | (NSUInteger) | count
option: |  | (BMKTraceOverlayOption *) | overlayOption

更新BMKTraceOverlay

参数

  coords | 经纬度坐标数组
  count | 经纬度坐标数组大小
  overlayOption | 动画参数

## ◆ updateTraceOverlayPoints:count:option:

- (BOOL) updateTraceOverlayPoints: |  | (CLLocationCoordinate2D *) | coords
count: |  | (NSUInteger) | count
option: |  | (BMKTraceOverlayOption *) | overlayOption

更新BMKTraceOverlay

参数

  coords | 直角坐标数组
  count | 直角坐标数组大小
  overlayOption | 动画参数

## 属性说明

## ◆ bloomSpeed

- (CGFloat) bloomSpeed
| read write nonatomic assign

轨迹发光参数 since 6.5.7 取值范围 [1.0f ~ 10.0f]，默认值为 5.0f 注意：渐变发光模式下该属性生效

## ◆ delegate

- (id<BMKTraceOverlayAnimationDelegate>) delegate
| read write nonatomic weak

动画代理

## ◆ isCornerSmooth

- (BOOL) isCornerSmooth
| read write nonatomic assign

是否需要对TraceOverlay坐标数据进拐角平滑，默认为YES

## ◆ isGradientColor

- (BOOL) isGradientColor
| read write nonatomic assign

是否使用渐变色 默认为NO since 6.5.7

## ◆ isStatusChanged

- (BOOL) isStatusChanged
| read nonatomic assign

当前轨迹的状态是否改变，标记轨迹是否从运行状态进入暂停状态。 since 6.5.9

## ◆ isThined

- (BOOL) isThined
| read write nonatomic assign

是否需要对TraceOverlay坐标数据进行抽稀，默认为YES

## ◆ isTrackBloom

- (BOOL) isTrackBloom
| read write nonatomic assign

是否使用发光效果 默认为NO since 6.5.7

## ◆ onPauseStatus

- (BOOL) onPauseStatus
| read nonatomic assign

轨迹动画暂停状态 since 6.5.9

## ◆ overlayOption

- (BMKTraceOverlayOption*) overlayOption
| read nonatomic strong

动画参数

该类的文档由以下文件生成:

- BaiduMapAPI_Map.framework/Headers/BMKTraceOverlay.h