[6.5.0][Opt]优化短程情况下线的宽度

This commit is contained in:
chenfufeng
2024-07-09 20:41:09 +08:00
parent df512827e2
commit 6254d96378

View File

@@ -79,7 +79,7 @@ class TravelRealityView @JvmOverloads constructor(
private const val minRoadRange = 52f
private const val maxRoadWidth = 32f
private const val minRoadWidth = 14f
private const val maxGlobalWidth = 20f
private const val maxGlobalWidth = 30f
private const val minGlobalWidth = 13f
}
@@ -401,12 +401,12 @@ class TravelRealityView @JvmOverloads constructor(
Log.w(TAG, "起终点距离为:$distance")
if (distance < 2000) {
roadRange = maxRoadRange
roadWidth = maxRoadWidth
globalWidth = maxGlobalWidth
} else {
roadRange = minRoadRange
roadWidth = minRoadWidth
globalWidth = minGlobalWidth
} else {
roadRange = minRoadRange
roadWidth = maxRoadWidth
globalWidth = maxGlobalWidth
}
val endOption = MarkerOptions()