[3.3.0][Fix]已走过轨迹替换新纹理不刷新
This commit is contained in:
@@ -130,9 +130,6 @@ class OverMapView @JvmOverloads constructor(
|
||||
@Volatile
|
||||
private var lastTime = 0L
|
||||
|
||||
@Volatile
|
||||
private var isPointsChanged = false
|
||||
|
||||
/**
|
||||
* 高频的
|
||||
*/
|
||||
@@ -808,10 +805,7 @@ class OverMapView @JvmOverloads constructor(
|
||||
if (mCoveredPolyline != null) {
|
||||
mCoveredPolyline!!.options.customTextureList = textureList
|
||||
mCoveredPolyline!!.options.customTextureIndex = texIndexList
|
||||
if (isPointsChanged) {
|
||||
mCoveredPolyline!!.points = coordinates
|
||||
isPointsChanged = false
|
||||
}
|
||||
mCoveredPolyline!!.points = coordinates
|
||||
return
|
||||
}
|
||||
|
||||
@@ -1090,7 +1084,6 @@ class OverMapView @JvmOverloads constructor(
|
||||
lastTime = System.currentTimeMillis()
|
||||
}
|
||||
MarkerDrawerManager.stopLoopCalCarLocation()
|
||||
isPointsChanged = true
|
||||
globalPathResp?.let {
|
||||
ThreadUtils.getSinglePool().execute {
|
||||
handlePlanningData(it.wayPointsList)
|
||||
|
||||
Reference in New Issue
Block a user