面数据增加纹理

This commit is contained in:
2023-07-18 10:56:21 +08:00
parent 13089fe6f2
commit 3f173aa86f
10 changed files with 13 additions and 15 deletions

View File

@@ -153,6 +153,9 @@ class ImportOMDBHelper @AssistedInject constructor(
if (list != null) {
// 将list数据转换为map
for ((index, line) in list.withIndex()) {
if (line == null || line.trim() == "") {
continue
}
Log.d("ImportOMDBHelper", "解析第:${index+1}")
val map = gson.fromJson<Map<String, Any>>(line, object:TypeToken<Map<String, Any>>(){}.getType())
.toMutableMap()

View File

@@ -164,6 +164,7 @@ class MainActivity : BaseActivity() {
// 在mapController初始化前获取当前OMDB图层显隐
viewModel.refreshOMDBLayer(LayerConfigUtils.getLayerConfigList())
mapController.mMapView.vtmMap.viewport().maxZoomLevel = 25
mapController.mMapView.vtmMap.viewport().maxTilt = 85f
//关联生命周期
binding.lifecycleOwner = this
//给xml转递对象

View File

@@ -115,7 +115,7 @@ class PersonalCenterFragment(private var backListener: (() -> Unit?)? = null) :
viewModel.readRealmData()
// 定位到指定位置
niMapController.mMapView.vtmMap.animator()
.animateTo(GeoPoint( 39.79440941020727, 116.51302718503038 ))
.animateTo(GeoPoint( 39.7991980627346, 116.50936676873703 ))
}
// R.id.personal_center_menu_task_list -> {
// findNavController().navigate(R.id.TaskManagerFragment)