[6.5.0][Opt]优化短程情况下线的宽度
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user