[6.5.0_tmp] mapautoview add volitile

This commit is contained in:
EmArrow
2024-06-12 19:34:30 +08:00
parent 23f83fc5d7
commit d7e4daddc0

View File

@@ -50,6 +50,7 @@ open class MapAutoView : FrameLayout, LonLatPointListener, ITraffic,ILockLocatio
}
//The instance of MapView
@Volatile
private var mMapView: MapView? = null
//The instance of IMapStyleParams
private var mMapStyleParams: IMapStyleParams? = null
@@ -64,6 +65,7 @@ open class MapAutoView : FrameLayout, LonLatPointListener, ITraffic,ILockLocatio
//The view of location
protected var mLocationView: ILocationView? = null
//The helper of MapView
@Volatile
private var mMapAutoViewHelper: MapAutoViewHelper? = null
//Longitude
@@ -1095,7 +1097,7 @@ open class MapAutoView : FrameLayout, LonLatPointListener, ITraffic,ILockLocatio
mDeviationAngle = deviationAngle
}
fun getMapView():MapView?{
return mMapView;
return mMapView
}
}