public class MovingPointOverlay
extends java.lang.Object
| 限定符和类型 | 类和说明 |
|---|---|
static interface |
MovingPointOverlay.MoveListener
平滑移动时返回剩余距离接口
Interface to return the remaining distance during smooth movement |
| 构造器和说明 |
|---|
MovingPointOverlay(AMap mAMap,
BasePointOverlay overlay)
根据给定的参数来构造SmoothMoveMarker对象。
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
destroy()
停止滑动并销毁Marker
Stop sliding and destroy the Marker |
BasePointOverlay |
getObject()
获取当前移动的Marker
Get the currently moving Marker |
LatLng |
getPosition()
获取当前位置坐标
Get the current position coordinates |
void |
resetIndex() |
void |
setMoveListener(MovingPointOverlay.MoveListener moveListener)
设置Marker移动的回调方法
Set the callback method for Marker movement |
void |
setPoints(java.util.List<LatLng> points)
设置平滑移动的经纬度数组
Set the latitude and longitude array for smooth movement |
void |
setTotalDuration(int duration)
设置平滑移动的总时间
Set the total time for smooth movement |
void |
setVisible(boolean b)
设置 Marker 是否可见
Set whether the Marker is visible |
void |
startSmoothMove()
开始平滑移动
Start smooth movement |
void |
stopMove()
停止平滑移动
Stop smooth movement |
public MovingPointOverlay(AMap mAMap, BasePointOverlay overlay)
mAMap - 地图AMap对象
public void setPoints(java.util.List<LatLng> points)
points - 平滑移动轨迹的坐标数组
public void resetIndex()
public void setTotalDuration(int duration)
duration - 单位: 秒
public void startSmoothMove()
public void stopMove()
public BasePointOverlay getObject()
public LatLng getPosition()
public void destroy()
public void setVisible(boolean b)
b - true 可见 false 不可见
public void setMoveListener(MovingPointOverlay.MoveListener moveListener)
moveListener - 回调监听参数