[6.5.0] fix bug of roam
This commit is contained in:
@@ -181,9 +181,6 @@ class MapView(context: Context, private val mMapStyleParams: IMapStyleParams, pr
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
override fun getMapEngine(): MapEngine {
|
||||
return mMapEngine
|
||||
}
|
||||
@@ -229,7 +226,7 @@ class MapView(context: Context, private val mMapStyleParams: IMapStyleParams, pr
|
||||
mITraffic = null
|
||||
}
|
||||
|
||||
//surfaceview截屏
|
||||
// surfaceView截屏
|
||||
private fun createBitmapFromGLSurface(x: Int, y: Int, w: Int, h: Int, gl: GL10): Bitmap? {
|
||||
val bitmapBuffer = IntArray(w * h)
|
||||
val bitmapSource = IntArray(w * h)
|
||||
@@ -256,10 +253,6 @@ class MapView(context: Context, private val mMapStyleParams: IMapStyleParams, pr
|
||||
return Bitmap.createBitmap(bitmapSource, w, h, Bitmap.Config.ARGB_8888)
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
fun setMapController(mMapController: IMapController?) {
|
||||
this.mMapController = mMapController
|
||||
}
|
||||
@@ -1231,7 +1224,6 @@ class MapView(context: Context, private val mMapStyleParams: IMapStyleParams, pr
|
||||
//设置刷新帧率
|
||||
override fun setRenderFps(fps: Int) {
|
||||
m_FPS = fps
|
||||
|
||||
}
|
||||
|
||||
//设置刷新帧率
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package com.zhidaoauto.map.sdk.open.view
|
||||
|
||||
import android.util.Log
|
||||
import android.view.View
|
||||
import com.autonavi.nge.map.LonLat
|
||||
import com.zhidaoauto.map.data.point.LonLatPoint
|
||||
import com.zhidaoauto.map.sdk.inner.CompileConfig
|
||||
@@ -775,6 +776,10 @@ class MapAutoViewHelper(mapAutoView: MapAutoView) {
|
||||
?.setPanel(PanelManager.PANEL_WHAT_HID, PanelManager.PANEL_BTN_LOGO)
|
||||
}
|
||||
|
||||
fun setVisible(visible:Boolean){
|
||||
mMapAutoView.getClerk()?.add()
|
||||
mMapAutoView.getMapView()?.visibility = if (visible) View.VISIBLE else View.GONE
|
||||
}
|
||||
|
||||
/**
|
||||
* 地图截屏
|
||||
|
||||
@@ -327,4 +327,6 @@ interface IMogoMapUIController {
|
||||
*/
|
||||
fun getMapScreenShot()
|
||||
fun setWeatherEnable(enable: Boolean)
|
||||
|
||||
fun setVisible(visible:Boolean)
|
||||
}
|
||||
@@ -951,4 +951,8 @@ class AMapViewWrapper(mMapView: MapAutoView) : IMogoMapView, IMogoMapUIControlle
|
||||
override fun setWeatherEnable(enable: Boolean) {
|
||||
mMapView.getMapAutoViewHelper()?.setWeatherEnable(enable)
|
||||
}
|
||||
|
||||
override fun setVisible(visible: Boolean) {
|
||||
mMapView.getMapAutoViewHelper()?.setVisible(visible)
|
||||
}
|
||||
}
|
||||
@@ -33,7 +33,7 @@ public class MogoIdentifyManager implements IMogoIdentifyManager {
|
||||
@Override
|
||||
public void removeMarker(String uuidString, String mapInstance) {
|
||||
try {
|
||||
IMogoMap iMogoMap = MogoMap.Companion.getMapInstance().getMogoMap(MogoMap.DEFAULT);
|
||||
IMogoMap iMogoMap = MogoMap.Companion.getMapInstance().getMogoMap(mapInstance);
|
||||
if(iMogoMap != null){
|
||||
iMogoMap.removeMarker(uuidString);
|
||||
}
|
||||
@@ -48,7 +48,7 @@ public class MogoIdentifyManager implements IMogoIdentifyManager {
|
||||
@Override
|
||||
public void updateBatchMarkerPosition(HashMap<String, MessagePad.TrackedObject> optionsArrayList, String mapInstance) {
|
||||
try {
|
||||
IMogoMap iMogoMap = MogoMap.Companion.getMapInstance().getMogoMap(MogoMap.DEFAULT);
|
||||
IMogoMap iMogoMap = MogoMap.Companion.getMapInstance().getMogoMap(mapInstance);
|
||||
if(iMogoMap != null){
|
||||
iMogoMap.updateBatchMarkerPosition(optionsArrayList);
|
||||
}
|
||||
@@ -60,7 +60,7 @@ public class MogoIdentifyManager implements IMogoIdentifyManager {
|
||||
@Override
|
||||
public void updateBatchAiMarkerPosition(HashMap<String, SocketDownData.CloudRoadDataProto> optionsArrayList, String mapInstance) {
|
||||
try {
|
||||
IMogoMap iMogoMap = MogoMap.Companion.getMapInstance().getMogoMap(MogoMap.DEFAULT);
|
||||
IMogoMap iMogoMap = MogoMap.Companion.getMapInstance().getMogoMap(mapInstance);
|
||||
if(iMogoMap != null){
|
||||
iMogoMap.updateBatchAiMarkerPosition(optionsArrayList);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user