DrawTraceDemo
高德地图轨迹回放带定位纠偏加彩虹渐变线
由于高德自身持续定位存在偏移状况,故摒弃了高德自身的定位点,改用自定义marker点作为定位点
加注轨迹纠偏函数,根据时间判定此次移动是否合乎标准
if(currLength
// if(currLength
errorCnt = 0;
lastLa = currLa;
lastTime = currTime;
mBestLat = mLocatinLat;
mBestLon = mLocationLon;
mCurrentLatLng = new LatLng(mBestLat, mBestLon);
LogUtil.d("yhy 发给轩哥了>>>>>>>>>" + currLength);
mLocationList.add(mCurrentLatLng);
mMarkMyLocation.setPosition(mCurrentLatLng);
DrawRideTraceTotal();
// lastTime = currTime;
// everyTime = currTime;
}else if(minusTime>=20000){
if(mOver){
if(!overLa.equals(currLa)){
// if(mOverCnt!=mLocationCnt){
errorCnt = 0;
lastLa = currLa;<