[6.2.0] change the map style

This commit is contained in:
zhongchao
2023-11-29 19:24:50 +08:00
parent 0f97882cde
commit d9c8c8885d
4 changed files with 26 additions and 4 deletions

View File

@@ -475,5 +475,5 @@ interface IMapController {
fun setStreetLightEffectIsEnable(isEnable: Boolean)
fun setHDTypeVisibile(type: IntArray?)
fun setHDTypeVisible(type: IntArray?)
}

View File

@@ -2218,7 +2218,7 @@ class MapController(private var context: Context?, private val mMapView: IMapVie
}
}
override fun setHDTypeVisibile(type: IntArray?){
override fun setHDTypeVisible(type: IntArray?){
mMapView.getMapEngine().setHDTypeVisibile(type)
}

View File

@@ -1524,8 +1524,8 @@ class MapAutoViewHelper(mapAutoView: MapAutoView) {
}
//设置显示高精元素
fun setHDTypeVisibile(type: IntArray?){
mMapAutoView.getMapController()?.setHDTypeVisibile(type)
fun setHDTypeVisible(type: IntArray?){
mMapAutoView.getMapController()?.setHDTypeVisible(type)
}
}

View File

@@ -35,6 +35,7 @@ import com.mogo.map.utils.ObjectUtils
import com.zhidaoauto.map.data.point.LonLatPoint
import com.zhidaoauto.map.data.road.RoadCross
import com.zhidaoauto.map.data.road.StopLine
import com.zhidaoauto.map.sdk.open.HDTypes
import com.zhidaoauto.map.sdk.open.MapAutoApi
import com.zhidaoauto.map.sdk.open.MapAutoApi.registerLogListener
import com.zhidaoauto.map.sdk.open.MapAutoApi.unregisterLogListener
@@ -192,6 +193,27 @@ class AMapViewWrapper(mMapView: MapAutoView) : IMogoMapView, IMogoMapUIControlle
override fun onMapLoaded() {
i(M_MAP + TAG, "onMapLoaded: ")
if (checkAMapView()) {
val hdVisibleArray = intArrayOf(
HDTypes.DIVIDER.type,
HDTypes.ROAD_AREA.type,
HDTypes.STOP_LINE.type,
HDTypes.ARROW.type,
HDTypes.STATION_BRIDGE.type,
HDTypes.ZEBRA_LINE.type,
HDTypes.GREEN_BELT.type,
HDTypes.DIVERSION.type,
HDTypes.SAFE_ISLAND.type,
HDTypes.ALPHANUMERIC.type,
HDTypes.GUARDBAR.type,
HDTypes.TRAFFIC_DEVICE.type,
HDTypes.building.type,
HDTypes.streetLight.type,
HDTypes.area.type,
HDTypes.regional.type,
HDTypes.geometricLinear.type,
HDTypes.geometricSurface.type,
HDTypes.poi.type)
mMapView.getMapAutoViewHelper()!!.setHDTypeVisible(hdVisibleArray)
loadPreVehicleModel()
}
}