From 2e00171e7aaea5d334cc37b9ac433a4dd49f8ef8 Mon Sep 17 00:00:00 2001 From: chenfufeng Date: Tue, 11 Apr 2023 10:29:25 +0800 Subject: [PATCH] =?UTF-8?q?[3.0.0][opt]=E6=94=AF=E6=8C=81=E9=AB=98?= =?UTF-8?q?=E5=BE=B7=E5=9C=B0=E5=9B=BE=E5=80=BE=E6=96=9C=E8=A7=92=E5=8F=AF?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/mogo/eagle/core/function/view/OverMapView.kt | 2 +- .../mogo-core-function-map/src/main/res/values/attrs.xml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/core/function-impl/mogo-core-function-map/src/main/java/com/mogo/eagle/core/function/view/OverMapView.kt b/core/function-impl/mogo-core-function-map/src/main/java/com/mogo/eagle/core/function/view/OverMapView.kt index cbf19c021a..2864399312 100644 --- a/core/function-impl/mogo-core-function-map/src/main/java/com/mogo/eagle/core/function/view/OverMapView.kt +++ b/core/function-impl/mogo-core-function-map/src/main/java/com/mogo/eagle/core/function/view/OverMapView.kt @@ -145,6 +145,7 @@ class OverMapView @JvmOverloads constructor( topPadding = typedArray.getInt(R.styleable.OverMapView_topPadding, 100) rightPadding = typedArray.getInt(R.styleable.OverMapView_rightPadding, 100) bottomPadding = typedArray.getInt(R.styleable.OverMapView_bottomPadding, 100) + mTilt = typedArray.getFloat(R.styleable.OverMapView_mapTilt, 30f) typedArray.recycle() initView(context) } catch (e: Exception) { @@ -296,7 +297,6 @@ class OverMapView @JvmOverloads constructor( private fun initAMapView(context: Context) { Log.d(TAG, "initAMapView") - mTilt = 30f mCameraUpdate = CameraUpdateFactory.zoomTo(zoomLevel.toFloat()) mAMap = mMapView!!.map mCustomMapStyleOptions = CustomMapStyleOptions() diff --git a/core/function-impl/mogo-core-function-map/src/main/res/values/attrs.xml b/core/function-impl/mogo-core-function-map/src/main/res/values/attrs.xml index 15a5585362..d70e4a35f8 100644 --- a/core/function-impl/mogo-core-function-map/src/main/res/values/attrs.xml +++ b/core/function-impl/mogo-core-function-map/src/main/res/values/attrs.xml @@ -29,5 +29,7 @@ + + \ No newline at end of file