liugl
2021-01-28 4873e23bebf15d2093ee99012d92794faeac474c
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)) {