public class TraceOverlay
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
TraceOverlayListener |
mListener |
Modifier and Type | Method and Description |
---|---|
void |
clear()
清除轨迹数据,但不会移除轨迹覆盖物
|
int |
getAnimationDuration()
获取动画延时
|
int |
getAnimationTime()
获取轨迹覆盖物动画时长
|
int |
getAnimationType()
获取动画类型
|
float |
getBloomSpeed() |
int |
getColor()
获取轨迹覆盖物颜色
|
int[] |
getColors()
获取轨迹颜色数组
|
BitmapDescriptor |
getIcon()
获取Point图片
|
BM3DModelOptions |
getIcon3D()
获取3d 图标数据
|
LatLngBounds |
getLatLngBounds() |
java.util.List<LatLng> |
getPoints()
获取轨迹覆盖物经纬度点
|
int |
getWidth()
设置轨迹覆盖物宽度
|
void |
icon(BitmapDescriptor icon)
设置Point图片,默认为圆点
|
void |
icon3D(BM3DModelOptions bm3DModelOptions)
设置3D模型图片
|
boolean |
isAnimate()
获取轨迹覆盖物是否做动画
|
boolean |
isDataReduction()
判断是否进行数据抽稀
|
boolean |
isDataSmooth()
判断是否进行数据抽稀
|
boolean |
isOnPause()
当前轨迹是否处于暂停状态
|
boolean |
isPointMove()
点平滑移动
|
boolean |
isRotateWhenTrack()
获取轨迹跟踪时地图是否跟着旋转, 默认YES
|
boolean |
isStatusChanged()
当前轨迹的状态是否改变,标记轨迹是否从运行状态进入暂停状态。
|
boolean |
isTrackBloom() |
boolean |
isTrackMove()
地图是否跟轨迹一起运动
|
boolean |
isUseColorArray()
是否启用轨迹颜色数组
|
void |
pause() |
void |
remove()
移除轨迹覆盖物
|
void |
resume() |
void |
setAnimate(boolean isAnimate)
设置轨迹覆盖物是否做动画
|
void |
setAnimationDuration(int animationDuration)
设置动画延时开始
|
void |
setAnimationTime(int animationTime)
设置轨迹覆盖物动画
|
void |
setBloomSpeed(float bloomSpeed)
配置发光参数
|
void |
setColor(int mColor)
设置轨迹覆盖物颜色
|
void |
setDataReduction(boolean isDataReduction)
设置是否进行数据抽稀
|
void |
setDataSmooth(boolean isSmooth)
设置是否进行数据平滑
|
void |
setPointMove(boolean isPointMove)
设置点平滑移动
|
void |
setRotateWhenTrack(boolean isRotateWhenTrack)
设置轨迹跟踪时地图是否跟着旋转, 默认YES
|
void |
setTraceAnimationType(TraceOptions.TraceAnimateType traceAnimationType)
设置动画类型
|
void |
setTraceColors(int[] traceColors)
设置轨迹覆盖物颜色数组
|
void |
setTracePoints(java.util.List<LatLng> tracePoints)
设置轨迹覆盖物经纬度点
|
void |
setTrackBloom(boolean isTrackBloom)
设置轨迹线发光
|
void |
setTrackMove(boolean isTrackMove)
设置地图是否跟踪轨迹一起运动
|
void |
setWidth(int mWidth)
设置轨迹覆盖物宽度
|
void |
update()
更新轨迹覆盖物
|
void |
useColorArray(boolean use)
是否使用轨迹颜色数组
|
public BitmapDescriptor getIcon()
public BM3DModelOptions getIcon3D()
public void icon(BitmapDescriptor icon)
icon
- public void icon3D(BM3DModelOptions bm3DModelOptions)
bm3DModelOptions
- public boolean isRotateWhenTrack()
public void setRotateWhenTrack(boolean isRotateWhenTrack)
isRotateWhenTrack
- public boolean isPointMove()
public void setPointMove(boolean isPointMove)
isPointMove
- public void setDataReduction(boolean isDataReduction)
isDataReduction
- true 进行,false 不进行, 默认: truepublic boolean isDataReduction()
public void setDataSmooth(boolean isSmooth)
isSmooth
- true 进行,false 不进行, 默认: truepublic boolean isDataSmooth()
public void setTrackBloom(boolean isTrackBloom)
isTrackBloom
- public boolean isTrackBloom()
public void setBloomSpeed(float bloomSpeed)
bloomSpeed
- public float getBloomSpeed()
public int getColor()
public void setColor(int mColor)
mColor
- 轨迹覆盖物颜色public void setAnimate(boolean isAnimate)
isAnimate
- true 需要, false 不需要 ,默认:falsepublic void useColorArray(boolean use)
use
- public void setTrackMove(boolean isTrackMove)
isTrackMove
- true 需要,false 不需要, 默认: falsepublic void setAnimationDuration(int animationDuration)
animationDuration
- 动画延时开始 单位:mspublic void setTraceAnimationType(TraceOptions.TraceAnimateType traceAnimationType)
traceAnimationType
- 动画类型,默认 匀速绘制public int getWidth()
public void setWidth(int mWidth)
mWidth
- 轨迹覆盖物宽度public java.util.List<LatLng> getPoints()
public int[] getColors()
public void setTracePoints(java.util.List<LatLng> tracePoints)
tracePoints
- 轨迹覆盖物经纬度点public void setTraceColors(int[] traceColors)
traceColors
- public void setAnimationTime(int animationTime)
animationTime
- 动画时长 单位:ms (默认300毫秒,设置动画参数时,不能小于300毫秒)public int getAnimationTime()
public int getAnimationType()
public int getAnimationDuration()
public boolean isAnimate()
public boolean isUseColorArray()
public boolean isTrackMove()
public LatLngBounds getLatLngBounds()
public boolean isOnPause()
public boolean isStatusChanged()
public void update()
public void clear()
public void remove()
public void pause()
public void resume()