fix: 合并代码

This commit is contained in:
2023-09-01 14:25:56 +08:00
29 changed files with 1111 additions and 274 deletions

View File

@@ -1971,12 +1971,9 @@
<m k="type" v="node">
<symbol src="assets:symbols/dot_blue_dark.svg"></symbol>
</m>
<!-- <m k="intersectionPid">
<m k="intersectionPid">
<symbol src="assets:symbols/dot_magenta.svg"></symbol>
</m>-->
<!-- <m k="geometry">
<symbol src="@typesrc"></symbol>
</m>-->
</m>
</m>
<!--车道中心线-->

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 5.3 KiB

After

Width:  |  Height:  |  Size: 6.7 KiB

View File

@@ -62,6 +62,7 @@ open class RenderEntity() : RealmObject(), Parcelable {
var zoomMin: Int = 18 //显示最小级别
var zoomMax: Int = 23 //显示最大级别
var enable:Int = 0 // 默认0不是显示 1为渲染显示 2为常显
var catchEnable:Int = 0 // 0捕捉 1不捕捉
constructor(name: String) : this() {
this.name = name

View File

@@ -72,13 +72,13 @@ enum class DataCodeEnum(var tableName: String, var code: String) {
OMDB_LANE_LINK_LG("车道中心线", "5001");
companion object {
fun findTableNameByCode(code: String): String? {
fun findTableNameByCode(code: String): String {
for (enumInstance in DataCodeEnum.values()) {
if (enumInstance.code == code) {
return enumInstance.tableName
}
}
return null // 若未找到匹配的 code则返回 null 或其他适当的默认值
return "" // 若未找到匹配的 code则返回 null 或其他适当的默认值
}
}
}

View File

@@ -345,6 +345,16 @@ class MarkHandler(context: AppCompatActivity, mapView: NIMapView) :
}
}
fun removeMarker() {
for (e in mDefaultMarkerLayer.itemList) {
if (e is MarkerItem) {
mDefaultMarkerLayer.removeItem(e)
break
}
}
mMapView.vtmMap.updateMap(true)
}
/**
* 增加或更新marker

View File

@@ -0,0 +1,12 @@
package com.navinfo.collect.library.utils
import android.content.Context
import java.io.InputStream
class AssetsFileLoadUtil {
companion object {
fun loadWarningSvg(context: Context, code: String): InputStream? {
return context.assets.open("omdb/appendix/1105_${code}_0.svg")
}
}
}