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