[6.5.0][Fix]取消Marker默认的可点击状态
This commit is contained in:
@@ -1135,6 +1135,7 @@ class TravelRealityView @JvmOverloads constructor(
|
||||
.position(LatLng(location.latitude, location.longitude))
|
||||
.anchor(0.5f, 0.5f)
|
||||
mCarMarker = mAMap?.addMarker(option)
|
||||
mCarMarker?.isClickable = false
|
||||
mCarMarker?.setToTop()
|
||||
}
|
||||
if (mCompassMarker != null) {
|
||||
@@ -1146,6 +1147,7 @@ class TravelRealityView @JvmOverloads constructor(
|
||||
.icon(BitmapDescriptorFactory.fromResource(if (compassDrawable != -1) compassDrawable else R.drawable.amap_custom_corner))
|
||||
.anchor(0.5f, 0.5f)
|
||||
)
|
||||
mCompassMarker?.isClickable = false
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1165,6 +1167,9 @@ class TravelRealityView @JvmOverloads constructor(
|
||||
mAMap?.let {
|
||||
eventMarkerList.addAll(it.addMarkers(eventOptionList, false))
|
||||
}
|
||||
eventMarkerList.forEach {
|
||||
it.isClickable = false
|
||||
}
|
||||
Log.d(TAG, "计算到绘制事件耗时为:${System.currentTimeMillis() - testTime}")
|
||||
}
|
||||
|
||||
@@ -1176,6 +1181,9 @@ class TravelRealityView @JvmOverloads constructor(
|
||||
mAMap?.let {
|
||||
deviceMarkerList.addAll(it.addMarkers(eventMarkerList, false))
|
||||
}
|
||||
deviceMarkerList.forEach {
|
||||
it.isClickable = false
|
||||
}
|
||||
}
|
||||
|
||||
private fun realDrawGlobalTrajectory(polylineOptionsList: ArrayList<PolylineOptions>) {
|
||||
@@ -1256,6 +1264,7 @@ class TravelRealityView @JvmOverloads constructor(
|
||||
mEndMarker = mAMap?.addMarker(
|
||||
options
|
||||
)
|
||||
mEndMarker?.isClickable = false
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user