[6.2.0] change the map style
This commit is contained in:
@@ -475,5 +475,5 @@ interface IMapController {
|
||||
|
||||
fun setStreetLightEffectIsEnable(isEnable: Boolean)
|
||||
|
||||
fun setHDTypeVisibile(type: IntArray?)
|
||||
fun setHDTypeVisible(type: IntArray?)
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -1524,8 +1524,8 @@ class MapAutoViewHelper(mapAutoView: MapAutoView) {
|
||||
}
|
||||
|
||||
//设置显示高精元素
|
||||
fun setHDTypeVisibile(type: IntArray?){
|
||||
mMapAutoView.getMapController()?.setHDTypeVisibile(type)
|
||||
fun setHDTypeVisible(type: IntArray?){
|
||||
mMapAutoView.getMapController()?.setHDTypeVisible(type)
|
||||
}
|
||||
|
||||
}
|
||||
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user