|
|
@@ -34,7 +34,7 @@ class SwitchStatusFragment :
|
|
|
|
|
|
override fun initView() {
|
|
|
gestureDetector = GestureDetector(requireContext(), object :
|
|
|
- GestureDetector.SimpleOnGestureListener() {
|
|
|
+ GestureDetector.SimpleOnGestureListener() {
|
|
|
override fun onDoubleTap(e: MotionEvent): Boolean {
|
|
|
mBinding?.mapview?.currentRotateDegrees = 0f
|
|
|
return super.onDoubleTap(e)
|
|
|
@@ -163,6 +163,10 @@ class SwitchStatusFragment :
|
|
|
stationLayer?.setRatio(mapRatio)
|
|
|
stationLayer?.stopAnimation()
|
|
|
stationLayer?.startAnimation()
|
|
|
+ ThreadUtils.runOnMain {
|
|
|
+ mBinding?.mapview?.visibility = View.VISIBLE
|
|
|
+ mBinding?.mapview?.currentRotateDegrees = 0f
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
override fun onMapLoadFail() {
|