liugl
2021-06-21 0fb44d953ab25a53d228b4c1f9381df80e70ee03
app/src/main/java/com/okgoincar/base/AMapKit.kt
@@ -162,11 +162,14 @@
     */
    fun addMarker(
        aMap: AMap,
        mLat: Double,
        mLng: Double,
        mLat: Double?,
        mLng: Double?,
        view: View,
        peopleId: String
    ): Marker? {
        if (mLat == null || mLng == null){
            return null
        }
        val options: MarkerOptions = getOption(LatLng(mLat, mLng), view)
        val marker: Marker = aMap.addMarker(options)
        if (!TextUtils.isEmpty(peopleId)) {