public class TraceOptions
extends java.lang.Object
限定符和类型 | 类和说明 |
---|---|
static class |
TraceOptions.TraceAnimateType
设置轨迹覆盖物动画类型
|
构造器和说明 |
---|
TraceOptions() |
限定符和类型 | 方法和说明 |
---|---|
TraceOptions |
animate(boolean isAnimate)
设置轨迹覆盖物是否做动画
|
TraceOptions |
animationDuration(int animationDuration)
设置动画延时开始
|
TraceOptions |
animationTime(int animationTime)
轨迹覆盖物动画
|
TraceOptions |
animationType(TraceOptions.TraceAnimateType traceAnimateType)
设置动画类型
|
TraceOptions |
color(int color)
配置轨迹覆盖物颜色
|
TraceOptions |
colors(int[] colors)
配置轨迹途径点的颜色
|
TraceOptions.TraceAnimateType |
getAnimateType()
获取动画类型
|
int |
getAnimationDuration()
获取动画延时开始时常
|
int |
getAnimationTime()
获取轨迹覆盖物配置的动画时长属性
|
float |
getBloomSpeed() |
int |
getColor()
获取轨迹覆盖物配置的颜色属性
|
int[] |
getColors()
获取轨迹覆盖物途径点的颜色数组
|
BitmapDescriptor |
getIcon()
获取Point图片
|
TraceOverlay |
getOverlay() |
java.util.List<LatLng> |
getPoints()
获取轨迹覆盖物配置的经纬度点
|
int |
getWidth()
获取轨迹覆盖物配置的宽度属性
|
TraceOptions |
icon(BitmapDescriptor icon)
设置Point图片,默认为圆点
|
TraceOptions |
icon3D(BM3DModelOptions bm3DModelOptions)
设置 3d 图标 (启用后二维图标自动失效)
|
boolean |
isAnimation()
获取轨迹覆盖物是否需要动画
|
boolean |
isPointMove()
点平滑移动
|
boolean |
isRotateWhenTrack()
获取轨迹跟踪时地图是否跟着旋转, 默认YES
|
boolean |
isTrackMove()
获取地图是否跟轨迹一起运动
|
boolean |
isUseColorarray() |
TraceOptions |
points(java.util.List<LatLng> points)
配置轨迹覆盖物经纬度点
|
TraceOptions |
setBloomSpeed(float bloomSpeed)
轨迹发光参数 (1.0f~5.0f 默认5.0f)
|
TraceOptions |
setDataReduction(boolean isDataReduction)
设置是否进行数据抽稀
|
TraceOptions |
setDataSmooth(boolean isSmooth)
设置是否进行数据平滑
|
TraceOptions |
setPointMove(boolean isPointMove)
设置点平滑移动
|
TraceOptions |
setRotateWhenTrack(boolean isRotateWhenTrack)
设置轨迹跟踪时地图是否跟着旋转, 默认YES
|
TraceOptions |
setTrackBloom(boolean isTrackBloom)
设置轨迹线发光
|
TraceOptions |
setTrackMove(boolean isTrackMove)
设置地图是否跟踪轨迹一起运动
|
TraceOptions |
useColorArray(boolean use)
使用轨迹颜色数组,目前仅用于渐变线
|
TraceOptions |
width(int width)
配置轨迹覆盖物宽度
|
public BitmapDescriptor getIcon()
public TraceOptions icon(BitmapDescriptor icon)
icon
- public TraceOptions icon3D(BM3DModelOptions bm3DModelOptions)
bm3DModelOptions
- public boolean isRotateWhenTrack()
public TraceOptions setRotateWhenTrack(boolean isRotateWhenTrack)
isRotateWhenTrack
- public boolean isPointMove()
public TraceOptions setPointMove(boolean isPointMove)
isPointMove
- public TraceOptions color(int color)
color
- 轨迹覆盖物颜色public TraceOptions colors(int[] colors)
colors
- 长度与 mPoints 保持一致public TraceOptions width(int width)
width
- 轨迹覆盖物宽度public TraceOptions points(java.util.List<LatLng> points)
points
- 轨迹覆盖物的经纬度点public TraceOptions animationTime(int animationTime)
animationTime
- 动画时长(默认300毫秒,设置动画参数时,不能小于300毫秒)public TraceOptions animate(boolean isAnimate)
isAnimate
- 轨迹覆盖物是否需要动画 默认不需要public TraceOptions animationDuration(int animationDuration)
animationDuration
- 动画延时开始 单位:mspublic TraceOptions animationType(TraceOptions.TraceAnimateType traceAnimateType)
traceAnimateType
- 动画类型,默认 匀速绘制public TraceOptions setTrackMove(boolean isTrackMove)
isTrackMove
- 默认 false 不需要public TraceOptions setDataReduction(boolean isDataReduction)
isDataReduction
- true 进行,false 不进行, 默认: truepublic TraceOptions setTrackBloom(boolean isTrackBloom)
isTrackBloom
- public TraceOptions setBloomSpeed(float bloomSpeed)
bloomSpeed
- public float getBloomSpeed()
public TraceOptions setDataSmooth(boolean isSmooth)
isSmooth
- true 进行,false 不进行, 默认: truepublic TraceOptions useColorArray(boolean use)
use
- public boolean isTrackMove()
public TraceOptions.TraceAnimateType getAnimateType()
public boolean isAnimation()
public boolean isUseColorarray()
public int getAnimationDuration()
public int getColor()
public int[] getColors()
public int getWidth()
public java.util.List<LatLng> getPoints()
public int getAnimationTime()
public TraceOverlay getOverlay()