如何在标记上放置点?

问题描述 投票:0回答:1

我将带有一些坐标的标记粘贴到地图上,如何在标记上放置点?

val currentLocation = LatLng(location!!.latitude,location.longitude)

  mMap!!.addMarker(MarkerOptions().position(currentLocation).title(Common.trackUser!!.email)
                .snippet(Common.getDateFormatted(Common.convertTimeStampToDate(location.time))))
                .setIcon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_AZURE))

您能帮我吗?

google-maps kotlin marker dot
1个回答
0
投票

Okey没关系,解决是最简单的,然后我想。

mMap.addCircle(CircleOptions().center(drawCircle).radius(5.0).strokeColor(Color.BLACK)
                    .fillColor(Color.BLACK))
            mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(currentLocation,16f))
        }
© www.soinside.com 2019 - 2024. All rights reserved.