[8.0.0][feat]新增预测和AIP功能

This commit is contained in:
chenfufeng
2025-05-08 15:06:32 +08:00
parent 3d5f6dc8c9
commit 0281d261c3
20 changed files with 1016 additions and 20 deletions

View File

@@ -11,6 +11,10 @@ class MogoMap private constructor() {
const val DEFAULT = "Default"
const val MAP_ROAM = "MapRoam" //漫游地图实例
const val SMALL_DES_MAP = "DecisionMap"//决策地图实例
const val SMALL_PRED_MAP = "PredictionMap"//预测地图实例
const val SMALL_PRED_MAP2 = "PredictionMap2"//预测地图实例
const val SMALL_PRED_MAP3 = "PredictionMap3"//预测地图实例
@JvmStatic
val mapInstance by lazy(LazyThreadSafetyMode.SYNCHRONIZED) {

View File

@@ -12,6 +12,8 @@ data class Polyline(val id: String, val owner: String, val level: Level, val opt
@Volatile
var delegate: IMapPolylineOverlay? = null
var mapTag: String = ""
class Options private constructor(private val builder: Builder) {
val id: String = builder.id ?: throw AssertionError("id must not be null.")
@@ -213,6 +215,14 @@ data class Polyline(val id: String, val owner: String, val level: Level, val opt
var result = id.hashCode()
result = 31 * result + owner.hashCode()
result = 31 * result + level.hashCode()
return result
return result + str2Int(mapTag)
}
private fun str2Int(tag: String): Int {
var sum = 0
for (c in tag) {
sum += c.code
}
return sum
}
}