[6.1.0][Opt]数据为空也清除轨迹

This commit is contained in:
chenfufeng
2023-09-28 14:22:16 +08:00
parent 6d76d6edd6
commit 79564c73df

View File

@@ -764,8 +764,8 @@ class OverMapView @JvmOverloads constructor(
* 绘制站点轨迹线
*/
fun drawSitePolyline(coordinates: List<LatLng>?, bitmap: Bitmap) {
if (coordinates.isNullOrEmpty()) return
clearSitePolyline()
if (coordinates.isNullOrEmpty()) return
if (mAMap != null) {
Message.obtain().apply {
what = DRAW_SITE_LINE