[fix]
[地图圆角]
This commit is contained in:
yangyakun
2025-05-30 12:04:48 +08:00
parent e143b67361
commit cecdc1e65d
3 changed files with 21 additions and 8 deletions

View File

@@ -24,7 +24,7 @@ import me.jessyan.autosize.utils.AutoSizeUtils
import kotlin.properties.Delegates
class MapBizView(context: Context?, attrs: AttributeSet?) : MogoMapView(context, attrs),
open class MapBizView(context: Context?, attrs: AttributeSet?) : MogoMapView(context, attrs),
IMoGoChassisLocationWGS84Listener, IMoGoChassisStatesListener, LifecycleObserver {
companion object {
@@ -143,10 +143,4 @@ class MapBizView(context: Context?, attrs: AttributeSet?) : MogoMapView(context,
super.onDestroy()
}
override fun onSizeChanged(w: Int, h: Int, oldw: Int, oldh: Int) {
super.onSizeChanged(w, h, oldw, oldh)
this.outlineProvider = TextureVideoViewOutlineProvider(AutoSizeUtils.dp2px(context,36f).toFloat())
this.clipToOutline = true
}
}