[6.2.0] fix handler thread of map cost
This commit is contained in:
@@ -44,7 +44,6 @@ import com.zhidaoauto.map.sdk.open.business.PointCloudHelper.setIsDrawPointCloud
|
||||
import com.zhidaoauto.map.sdk.open.business.PointCloudHelper.setPointCloudColor
|
||||
import com.zhidaoauto.map.sdk.open.business.PointCloudHelper.setPointCloudSize
|
||||
import com.zhidaoauto.map.sdk.open.business.PointCloudHelper.updatePointCloudDataByPb
|
||||
import com.zhidaoauto.map.sdk.open.camera.CameraPosition
|
||||
import com.zhidaoauto.map.sdk.open.camera.CameraUpdateFactory.newLatLngBounds
|
||||
import com.zhidaoauto.map.sdk.open.location.MyLocationStyle
|
||||
import com.zhidaoauto.map.sdk.open.marker.BitmapDescriptorFactory.convertViewToBitmap
|
||||
@@ -59,7 +58,7 @@ import java.util.concurrent.atomic.AtomicInteger
|
||||
import kotlin.properties.Delegates
|
||||
|
||||
class AMapViewWrapper(mMapView: MapAutoView) : IMogoMapView, IMogoMapUIController,
|
||||
OnMapLoadedListener, OnCameraChangeListener, OnMapClickListener, OnMapTouchListener,
|
||||
OnMapLoadedListener, OnMapClickListener, OnMapTouchListener,
|
||||
OnMarkClickListener, OnMapStyleListener, OnMapViewVisualAngleChangeListener, OnRoadInfoListener,
|
||||
ILog, OnRoamStatusListener, OnRoadSideFenceRegionListener {
|
||||
|
||||
@@ -119,7 +118,6 @@ class AMapViewWrapper(mMapView: MapAutoView) : IMogoMapView, IMogoMapUIControlle
|
||||
mMapView.setOnMapLoadedListener(this)
|
||||
mMapView.setOnMapTouchListener(this)
|
||||
mMapView.setOnMapClickListener(this)
|
||||
mMapView.setOnCameraChangeListener(this)
|
||||
mMapView.setOnMapStyleListener(this)
|
||||
mMapView.setOnRoamStatusListener(this)
|
||||
mMapView.setOnMapViewVisualAngleChangeListener(this)
|
||||
@@ -194,14 +192,6 @@ class AMapViewWrapper(mMapView: MapAutoView) : IMogoMapView, IMogoMapUIControlle
|
||||
override fun onMapLoaded() {
|
||||
i(M_MAP + TAG, "onMapLoaded: ")
|
||||
if (checkAMapView()) {
|
||||
val cameraPosition = mMapView.getMapAutoViewHelper()!!
|
||||
.getCameraPosition()
|
||||
mogoMapListenerHandler.onMapChanged(
|
||||
ObjectUtils.fromAMap(cameraPosition.target),
|
||||
cameraPosition.zoom,
|
||||
cameraPosition.tilt,
|
||||
cameraPosition.bearing
|
||||
)
|
||||
loadPreVehicleModel()
|
||||
}
|
||||
}
|
||||
@@ -633,18 +623,6 @@ class AMapViewWrapper(mMapView: MapAutoView) : IMogoMapView, IMogoMapUIControlle
|
||||
}
|
||||
}
|
||||
|
||||
override fun onCameraChange(type: Int, value: Int) {}
|
||||
override fun onCameraChangeFinish(position: CameraPosition?) {
|
||||
position?.let {
|
||||
mogoMapListenerHandler.onMapChanged(
|
||||
ObjectUtils.fromAMap(position.target),
|
||||
position.zoom,
|
||||
position.tilt,
|
||||
position.bearing
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
override fun onChangeMapStyle(style: Int) {
|
||||
// CallerLogger.INSTANCE.d(M_MAP + TAG, "currentMapStyle = " + styleId + " , current = " + mCurrentUI);
|
||||
// 映射地图样式ID到鹰眼样式ID
|
||||
|
||||
Reference in New Issue
Block a user